CustomFieldsConverter extends ClassicConverter { @Override public void start() { customFieldsAdapter.initialize(getContext()); converter.setFieldName(getFirstOption()); converter.setCustomFieldKeyNames(customFieldsAdapter.getCustomFieldMdcKeyNames()); super.start(); }  @Override String convert(ILoggingEvent event); @Override void start(); static final String WORD; }
@Test public void propagatesPrefix() throws Exception { converter.setOptionList(asList("prefix")); converter.start(); verify(defaultConverter).setFieldName("prefix"); }