### Question:
ResultSetInput implements RelationalInput { static RelationalInput create(ResultSet resultSet) { ResultSetIterator rows = ResultSetIterator.create(resultSet); return new ResultSetInput(rows); }  @Override void close(); @Override Schema getSchema(); @Override Iterator<Row> iterator();  }### Answer:
@Test public void testNumberOfRows() throws SQLException, InputCloseException { try (Statement statement = connection.createStatement()) { ResultSet resultSet = statement.executeQuery("SELECT * FROM Person"); try (RelationalInput input = ResultSetInput.create(resultSet)) { assertThat(Iterables.size(input)).isEqualTo(3); } } }