TaskStream<String> taskStream = sqlQuery.executeDynamicQuery(new Object[]{20, 'M'}, mockRowMapper);
verify(mockStatement, times(1)).setObject(1, 20);
verify(mockStatement, times(1)).setObject(2, 'M');
SqlResultSetStreamIterator iterator = ReflectionUtil.getField(taskStream, "iterator", SqlResultSetStreamIterator.class);
assertEquals(mockConnection, ReflectionUtil.getField(iterator, "connection", Connection.class));
assertEquals(mockResultSet, ReflectionUtil.getField(iterator, "resultSet", ResultSet.class));
assertEquals(mockRowMapper, ReflectionUtil.getField(iterator, "rowMapper", Function.class));
}