EventFactory { public Event createBeginOutboundProcessing() { return new BeginOutboundProcessingEvent(); }  Event createBeginOutboundMessage(); Event createBeginOutboundProcessing(); Event createBeginNwhinInvocation(); Event createEndNwhinInvocation(); Event createEndOutboundProcessing(); Event createEndOutboundMessage(); Event createBeginInboundMessage(); Event createBeginInboundProcessing(); Event createBeginAdapterDelegation(); Event createEndAdapterDelegation(); Event createEndInboundProcessing(); Event createEndInboundMessage();  }
@Test public void createBeginOutboundProcessing() { Event event = eventFactory.createBeginOutboundProcessing(); assertTrue(event instanceof BeginOutboundProcessingEvent); }
@Test public void newEventEachCall() { Event first = eventFactory.createBeginOutboundProcessing(); Event second = eventFactory.createBeginOutboundProcessing(); assertNotSame(first, second); }