@Test
public void dispatch_messageProcessorException() throws Exception {

    List<Message> messages = Lists.newArrayList(mockMessage("1"));
    doThrow(MessageProcessorException.class).when(messageProcessorProxy).invoke(any());
    dispatcher.dispatch(messages);
    verify(messageProcessorProxy).invoke(new SQSMessageProcessorRequest(messages));
    verifyNoMoreInteractions(messageProcessorProxy, sqsProxy);
}