### Question:
SpacesScreenServiceImpl implements SpacesScreenService { @Override public boolean isValidGroupId(final String groupId) { return organizationalUnitService.isValidGroupId(groupId); } 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 testIsValidGroupId() { doReturn(true).when(organizationalUnitService).isValidGroupId("org.foo"); assertTrue(spacesScreenService.isValidGroupId("org.foo")); }
@Test public void testIsValidGroupIdFalse() { doReturn(false).when(organizationalUnitService).isValidGroupId("org.foo"); assertFalse(spacesScreenService.isValidGroupId("org.foo")); }