### Question:
LaunchingTasks { List<TaskRequest> getPendingTasks() { List<TaskRequest> result = new ArrayList<>(eligibleJobContextsMap.size() * 10); for (JobContext each : eligibleJobContextsMap.values()) { result.addAll(createTaskRequests(each)); } return result; } LaunchingTasks(final Collection<JobContext> eligibleJobContexts);   }### Answer:
@Test public void assertGetPendingTasks() { List<TaskRequest> actual = launchingTasks.getPendingTasks(); Assert.assertThat(actual.size(), Is.is(20)); }
@Test public void assertGetPendingTasks() { List<TaskRequest> actual = launchingTasks.getPendingTasks(); assertThat(actual.size(), is(20)); }