### Question:
AccessControllerState { public PropertiesFunction getFunction(String name) { return functionMap.get(name); } private  AccessControllerState(Map<String, PropertiesFunction> functionMap, Map<Long, PropertiesOrganization> organizationMap, Map<Long, PropertiesSubject> subjectMap); PropertiesFunction getFunction(String name); PropertiesOrganization getOrganization(long internalID); PropertiesOrganization getOrganization(String name); PropertiesSubject getSubject(long internalID); PropertiesSubject getSubject(String name); Set<PropertiesOrganization> getParentOrganizations(long internalID); Set<PropertiesOrganization> getChildOrganizations(long internalID); Set<PropertiesSubject> getParentSubjects(long internalID); static Builder builder();  }### Answer:
@Test public void testGetFunction() { PropertiesFunction function = PropertiesFunction.builder().setName("test").build(); AccessControllerState state = AccessControllerState.builder().addFunction(function).build(); assertSame(function, state.getFunction(function.getName())); }