@Test
public void testNextWhenValueIsPresent() {

  List<String> listOfOneElement = ImmutableList.of(TEST_VALUE);
  when(stream.iterator()).thenReturn(listOfOneElement.iterator());
  scanner = new RowResultScanner<>(stream, TEST_ARRAY);
  // Should return value
  assertEquals(TEST_VALUE, scanner.next());
  // Once all the values are iterated, Scanner should return null.
  assertNull(scanner.next());
  verify(stream).iterator();
}