### Question:
SpacesScreenServiceImpl implements SpacesScreenService { @Override public Collection<OrganizationalUnit> getSpaces() { return organizationalUnitService.getOrganizationalUnits(true); } SpacesScreenServiceImpl(); @Inject  SpacesScreenServiceImpl(final OrganizationalUnitService organizationalUnitService,
                                   final SessionInfo sessionInfo); @Override Collection<OrganizationalUnit> getSpaces(); @Override OrganizationalUnit getSpace(final String name); @Override boolean isValidGroupId(final String groupId); @Override Response postSpace(final NewSpace newSpace);  }### Answer:
@Test public void testGetSpaces() { final Collection<OrganizationalUnit> spaces = Arrays.asList(new OrganizationalUnitImpl("foo", "org.foo"), new OrganizationalUnitImpl("bar", "org.bar")); doReturn(spaces).when(organizationalUnitService).getOrganizationalUnits(true); assertEquals(spaces, spacesScreenService.getSpaces()); }