@Test
public void testNextWithCount() {

  List<String> listWithMultipleElmt = ImmutableList.of("firstValue", "secondValue", "thirdValue");
  when(stream.iterator()).thenReturn(listWithMultipleElmt.iterator());
  scanner = new RowResultScanner<>(stream, TEST_ARRAY);
  String[] actualArr = scanner.next(3);
  assertArrayEquals(listWithMultipleElmt.toArray(TEST_ARRAY), actualArr);
  verify(stream).iterator();
}