### Question:
CoverageService { List<AxisPointDTO> getAllPoints(AxisGenerator generator, long projectId) { List<AxisPointDTO> points = new ArrayList<>(); points.add(AxisPointDTO.ALL); points.addAll(generator.getPoints(projectId).collect(Collectors.toList())); return points; }  CoverageDTO computeCoverage(long projectId);  }### Answer:
@Test public void getAllPoints_should_return_ALL_plus_the_points_of_the_generator() { when(generator1.getPoints(A_PROJECT_ID)).thenReturn(Stream.of( new AxisPointDTO().withId("Z"), new AxisPointDTO().withId("A"))); final List<AxisPointDTO> points = cut.getAllPoints(generator1, A_PROJECT_ID); assertThat(points.stream().map(AxisPointDTO::getId)).containsExactly("", "Z", "A"); }