NullMessageConsumer extends AdaptrisMessageConsumerImp { @Override public void prepare() throws CoreException { logWarningIfNotNull(destWarning, () -> destWarning = true, getDestination(), "{} uses destination, it has no meaning", LoggingHelper.friendlyName(this)); } NullMessageConsumer(); @Override void prepare();  }
@Test public void testLifecycle() throws Exception { NullMessageConsumer consumer = new NullMessageConsumer(); try { LifecycleHelper.prepare(consumer); LifecycleHelper.initAndStart(consumer); } finally { LifecycleHelper.stopAndClose(consumer); } }