@Test
public void poll_noMessagesReceived() throws Exception {

    when(messageDispatcher.getEstimatedCapacity(any())).thenReturn(1);
    when(sqsProxy.receiveMessages(anyInt())).thenReturn(Collections.emptyList());
    poller.poll(SQSPoller.TIMEOUT_BUFFER_IN_MILLIS * 2);
    verify(messageDispatcher, never()).dispatch(any());
}