TestEndpointMessageNotificationListener listener = new TestEndpointMessageNotificationListener();
muleContext.registerListener(listener);
OutboundEndpoint endpoint = createTestOutboundEndpoint(null, null, null, null,
MessageExchangePattern.REQUEST_RESPONSE, null);
MessageProcessor mp = new OutboundNotificationMessageProcessor(endpoint);
MuleEvent event = createTestOutboundEvent();
mp.process(event);
assertTrue(listener.latch.await(RECEIVE_TIMEOUT, TimeUnit.MILLISECONDS));
assertEquals(EndpointMessageNotification.MESSAGE_SENT, listener.messageNotification.getAction());
assertEquals(endpoint.getEndpointURI().getUri().toString(),
listener.messageNotification.getEndpoint());