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

    boolean result = spliterator.tryAdvance(consumer);

    assertFalse(result);
    verify(resultSet, times(1)).next();
  }
 @Test
 public void characteristics_are_immutable_nonnull_distinct() {
   assertThat(spliterator.characteristics(), is(IMMUTABLE | NONNULL | DISTINCT));
 }
 @Test
 public void estimate_size_returns_long_max_value() {
   assertThat(spliterator.estimateSize(), is(Long.MAX_VALUE));
 }
 @Test
 public void try_split_returns_null() {
   assertThat(spliterator.trySplit(), is(nullValue()));
 }