### Question:
SourceServiceImpl implements SourceService { @Override public Collection<String> getOrganizationUnits() { return organizationalUnitService.getOrganizationalUnits().stream() .map(OrganizationalUnit::getName) .collect(Collectors.toList()); } SourceServiceImpl(); @Inject  SourceServiceImpl(OrganizationalUnitService organizationalUnitService,
                             RepositoryService repositoryService,
                             ModuleService<? extends Module> moduleService,
                             AuthorizationManager authorizationManager,
                             User identity); @Override Collection<String> getOrganizationUnits(); @Override Collection<String> getRepositories(final String organizationalUnit); @Override Collection<String> getBranches(final Space space, final String repositoryName); @Override Collection<Module> getModules(final Space space,
                                         final String repositoryAlias,
                                         final String branchName);  }### Answer:
@Test public void testGetOrganizationalUnits() { when(organizationalUnitService.getOrganizationalUnits()).thenReturn(organizationalUnits); List<String> expectedResult = organizationalUnits.stream() .map(OrganizationalUnit::getName) .collect(Collectors.toList()); Collection<String> result = service.getOrganizationUnits(); assertEquals(expectedResult, result); }