### Question:
ElasticsearchAppender extends AbstractAppender { private void lifecycleStart() { itemAppender.start(); if (getLayout() instanceof LifeCycle) { ((LifeCycle)getLayout()).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 lifecycleStart() { LifeCycle lifeCycle = createLifeCycleTestObject(); assertFalse(lifeCycle.isStarted()); lifeCycle.start(); assertFalse(lifeCycle.isStopped()); assertTrue(lifeCycle.isStarted()); }