SetEnabledFunction extends SetPropertyFunction<Boolean> { @Override protected String getPropertyName() { return "readOnly"; }  @Override Boolean apply(String field, Boolean value); @Override String getName(); static final String NAME; }
@Test public void testGetPropertyName() { SetEnabledFunction setEnabledFunction = new SetEnabledFunction(); Assert.assertEquals("readOnly", setEnabledFunction.getPropertyName()); }