### Question:
NamedFieldHandler implements ElementHandler { public boolean handle(Element element) { String fullName = element.getDeclaringClass().getName() + "-" + element.getName(); return name.equals(fullName) || name.equals(element.getName()); } NamedFieldHandler(String name); boolean handle(Element element);  }### Answer:
@Test public void testHandle() throws Exception { List<Element> fields = TestUtils.getTestFields(); ElementHandler handler = new NamedFieldHandler("booleanProperty"); Assert.assertFalse(handler.handle(fields.get(0))); Assert.assertTrue(handler.handle(fields.get(1))); Assert.assertFalse(handler.handle(fields.get(2))); Assert.assertFalse(handler.handle(fields.get(3))); Assert.assertFalse(handler.handle(fields.get(4))); }