### Question:
ResultsetCreator { public ResultsetCreator create(List<Row> rows) { ResultSet resultSet = new ResultSet(); resultSet.setColumnMetadata(this.columnsMetadata); resultSet.setRows(rows); queryResult = QueryResult.createQueryResult(resultSet,0,false); queryResult.setQueryId(queryData.getQueryId()); return this; } ResultsetCreator(ConnectorQueryData queryData); void setResultHandler(IResultHandler resultHandler); void send(); ResultsetCreator create(List<Row> rows);  }### Answer:
@Test public void createResultSetTest() throws Exception { List<Row> rows = new LinkedList<>(); rows.add(createRow(VALUE_1_1, VALUE_2_1)); rows.add(createRow(VALUE_1_2, VALUE_2_2)); resultsetCreator.create(rows); QueryResult returnValue = (QueryResult) Whitebox.getInternalState(resultsetCreator, "queryResult"); valiateMetadata(returnValue.getResultSet().getColumnMetadata()); assertEquals("the rows are correct", rows, returnValue.getResultSet().getRows()); assertEquals("the query id is correct", QUERY_ID, returnValue.getQueryId()); }