PojoPropertyAccessorMode { public String getName() { return this.name; } PojoPropertyAccessorMode(String name, boolean reading); String getName(); boolean isReading(); @Override String toString();  }
@Test public void testModes() { assertEquals("get", PojoPropertyAccessorNonArgMode.GET.getName()); assertEquals("get-size", PojoPropertyAccessorNonArgMode.GET_SIZE.getName()); assertEquals("set", PojoPropertyAccessorOneArgMode.SET.getName()); assertEquals("add", PojoPropertyAccessorOneArgMode.ADD.getName()); assertEquals("remove", PojoPropertyAccessorOneArgMode.REMOVE.getName()); assertEquals("get-mapped", PojoPropertyAccessorOneArgMode.GET_MAPPED.getName()); assertEquals("set-mapped", PojoPropertyAccessorTwoArgMode.SET_MAPPED.getName()); assertEquals("get-indexed", PojoPropertyAccessorIndexedNonArgMode.GET_INDEXED.getName()); assertEquals("set-indexed", PojoPropertyAccessorIndexedOneArgMode.SET_INDEXED.getName()); }