{
List<MessageProcessor> list = new ArrayList<MessageProcessor>();
list.add(Mockito.mock(OutboundEndpoint.class));
list.add(Mockito.mock(OutboundEndpoint.class));
AbstractExceptionListener router = new DefaultMessagingExceptionStrategy(null);
assertNotNull(router.getMessageProcessors());
assertEquals(0, router.getMessageProcessors().size());
router.addEndpoint(Mockito.mock(OutboundEndpoint.class));
assertEquals(1, router.getMessageProcessors().size());
router.setMessageProcessors(list);
assertNotNull(router.getMessageProcessors());
assertEquals(2, router.getMessageProcessors().size());
}