### Question:
ElasticsearchAppender extends AbstractAppender { @Override public void start() { lifecycleStart(); super.start(); } protected  ElasticsearchAppender(String name, Filter filter, Layout layout,
            boolean ignoreExceptions, BatchDelivery batchDelivery, boolean messageOnly, IndexNameFormatter indexNameFormatter); void append(LogEvent event); @PluginBuilderFactory static Builder newBuilder(); @Override void start(); @Override void stop(); @Override boolean stop(long timeout, TimeUnit timeUnit); static final String PLUGIN_NAME; }### Answer:
@Test public void lifecycleStartStartsItemAppender() { ItemSourceAppender mockItemAppender = mock(ItemSourceAppender.class); ItemAppenderFactory itemAppenderFactory = new ItemAppenderFactory() { @Override public ItemSourceAppender createInstance(boolean messageOnly, Layout layout, BatchDelivery batchDelivery) { return mockItemAppender; } }; TestElasticsearchAppender appender = createTestElasticsearchAppender(itemAppenderFactory); appender.start(); verify(mockItemAppender).start(); }