### Question:
EventConverterAdapter implements EventConverter<E> { @Override public E convert(String key) { for (E event : type.getEnumConstants()) { if (key.equalsIgnoreCase(event.event())) { return event; } } return null; } EventConverterAdapter(Class<E> clazz); @Override E convert(String key);  }### Answer:
@Test public void convertTest() { TestEvent event = eventConverter.convert("TestEvent"); Assert.assertEquals(TestEvent.TEST_EVENT, event); }