shadows/framework/src/main/java/org/robolectric/shadows/ShadowActivityManager.java
public void setAppTasks(List<ActivityManager.AppTask> appTasks) {
    this.appTasks.clear();
    this.appTasks.addAll(appTasks);
  }
public void setAppTasks(List<ActivityManager.AppTask> appTasks) {
    this.appTasks.clear();
    this.appTasks.addAll(appTasks);
  }
Sets the values to be returned by {@link #getAppTasks()}.

@see #getAppTasks()
@param tasks List of app tasks.