### Question:
EnumHandler implements ElementHandler { public boolean handle(Element element) { try { return element.getWrappedType().isEnum(); } catch (Exception e) { } return false; }  boolean handle(Element element);  }### Answer:
@Test public void testHandle() throws Exception { List<Element> fields = TestUtils.getTestFields(); ElementHandler handler = new EnumHandler(); Assert.assertFalse(handler.handle(fields.get(0))); Assert.assertFalse(handler.handle(fields.get(1))); Assert.assertFalse(handler.handle(fields.get(2))); Assert.assertFalse(handler.handle(fields.get(3))); Assert.assertTrue(handler.handle(fields.get(4))); }