when(statement.getResultSet()).thenReturn(resultSet);
Object nextResult = iterator.next();
assertThat(nextResult, is(instanceOf(ResultSetResult.class)));
ResultSetResult resultSetResult = (ResultSetResult) nextResult;
assertThat(resultSetResult.getName(), equalTo("resultSet1"));
assertThat((ResultSet) resultSetResult.getResult(), equalTo(resultSet));
}