@Test
public void testNext() throws Exception {

  final ReceiveMessageResult expected = new ReceiveMessageResult();
  when(mockSQS.receiveMessage(any(ReceiveMessageRequest.class))).thenReturn(expected);
  final List<Message> actual = iterator.next();
  assertThat(actual).isEqualTo(expected.getMessages());
}