JmsAsyncProducer extends JmsProducer { @Override public void init() throws CoreException { super.init(); getEventHandler().init(); } JmsAsyncProducer(); @Override void init();  }
@Test public void testInitSetsEventhandlerAccept() throws Exception { LifecycleHelper.init(producer); assertTrue(producer.getEventHandler().getAcceptSuccessCallbacks()); }
@Test public void testInitWithExceptionHandler() throws Exception { try { LifecycleHelper.init(producer); } catch (CoreException ex) { fail("Shouldn't throw core exception with a configured exception handler."); } }