### Question:
DefaultUntypedRecordableEventConverter extends DefaultRecordableEventConverter { @Override public Event convert(RecordableEvent recordableEvent, String source, Object data) throws Exception { Event convertedEvent = super.convert(recordableEvent, source, data); convertedEvent.setType(((UntypedRecordableEvent) recordableEvent).getEventType()); return convertedEvent; }  @Override Event convert(RecordableEvent recordableEvent, String source, Object data); @Override List<RecordableEvent> getSupportedEvents(); static final String NAME; }### Answer:
@Test public void convert() throws Exception { UntypedRecordableEvent event = mock(UntypedRecordableEvent.class); when(event.getEventType()).thenReturn("some type"); Event result = mocker.getComponentUnderTest().convert(event, "source", "data"); assertEquals("some type", result.getType()); }