assertTrue(router.isMatch(message));
final MuleSession session = mock(MuleSession.class);
// exception to throw
MuleEvent eventToThrow = new DefaultMuleEvent(message, MessageExchangePattern.ONE_WAY, null, session);
MuleException rex = new RoutingException(eventToThrow, endpoint1);
// 1st failure
when(mockendpoint1.process(any(MuleEvent.class))).thenAnswer(new MuleEventCheckAnswer(rex));
when(mockendpoint2.process(any(MuleEvent.class))).thenAnswer(new MuleEventCheckAnswer(event));
MuleEvent actualResult = router.route(new OutboundRoutingTestEvent(message, session, muleContext));