DownloadXmlTask extends AsyncTask<String, Void, List<Project>> { @Override protected void onPostExecute(List<Project> result) { listViewController.updateListView(result); } DownloadXmlTask(ProjectParser projectParser, ListViewController listViewController, ProjectStorageController
            projectStorageController);   }
@Test public void testThatListUpdateIsDonePostExecution() throws Exception { Project project1 = new Project(); Project project2 = new Project(); List<Project> projects = asList(project1, project2); downloadXmlTask.onPostExecute(projects); verify(listViewController).updateListView(projects); }