### Question:
DeadLetterTopicExceptionHandlerConfig extends AbstractConfig { public String outputTopic() { return getString(DEAD_LETTER_TOPIC_CONFIG); } DeadLetterTopicExceptionHandlerConfig(final Map<String, ?> originals); String outputTopic(); Map<String, Object> customHeaders(); Map<String, Object> producerConfigs(); List<Class<?>> getFatalExceptions(); static ConfigDef configDef(); static final String DEAD_LETTER_TOPIC_CONFIG; static final String DEAD_LETTER_TOPIC_DOC; static final String FATAL_ERRORS_CONFIG; static final String FATAL_ERRORS_DOC; static final String DEAD_LETTER_PRODUCER_CONFIG; static final String DEAD_LETTER_HEADERS_PREFIX; }### Answer:
@Test public void shouldAcceptTopicConfig() { DeadLetterTopicExceptionHandlerConfig config = new DeadLetterTopicExceptionHandlerConfig( Collections.singletonMap(DEAD_LETTER_TOPIC_CONFIG, "test") ); assertEquals("test", config.outputTopic()); }