@Test
public void testGetFunction() {

  PropertiesFunction function = PropertiesFunction.builder().setName("test").build();
  AccessControllerState state = AccessControllerState.builder().addFunction(function).build();
  assertSame(function, state.getFunction(function.getName()));
}