@Test
  @SuppressWarnings("unchecked")
  public void creates_row_when_result_set_has_data() throws SQLException {
    when(resultSet.next()).thenReturn(true);
    Consumer<ResultSet> consumer = mock(Consumer.class);

    boolean result = spliterator.tryAdvance(consumer);

    assertTrue(result);
    verify(resultSet, times(1)).next();
  }