### Question:
IRODSGenQueryExecutorImpl extends IRODSGenericAO implements IRODSGenQueryExecutor { @Override public IRODSQueryResultSet getMoreResults(final IRODSQueryResultSet irodsQueryResultSet) throws JargonException, JargonQueryException { log.info("getting more results for query"); if (irodsQueryResultSet == null) { throw new JargonException("null irodsQueryResultSet"); } if (!irodsQueryResultSet.isHasMoreRecords()) { throw new JargonQueryException("no more results"); } GenQueryProcessor genQueryProcessor = new GenQueryProcessor(getIRODSProtocol()); return genQueryProcessor.executeTranslatedIRODSQuery(irodsQueryResultSet.getTranslatedIRODSQuery(), irodsQueryResultSet.getContinuationIndex(), 0, QueryCloseBehavior.MANUAL_CLOSE, null); } IRODSGenQueryExecutorImpl(final IRODSSession irodsSession, final IRODSAccount irodsAccount); @Override IRODSQueryResultSet executeIRODSQuery(final AbstractIRODSGenQuery irodsQuery, final int continueIndex); @Override IRODSQueryResultSet executeIRODSQueryInZone(final AbstractIRODSGenQuery irodsQuery, final int continueIndex,
			final String zoneName); @Override IRODSQueryResultSet executeIRODSQueryAndCloseResult(final AbstractIRODSGenQuery irodsQuery,
			final int partialStartIndex); @Override IRODSQueryResultSet executeIRODSQueryAndCloseResultInZone(final AbstractIRODSGenQuery irodsQuery,
			final int partialStartIndex, final String zoneName); @Override IRODSQueryResultSet executeIRODSQueryWithPaging(final AbstractIRODSGenQuery irodsQuery,
			final int partialStartIndex); @Override IRODSQueryResultSet executeIRODSQueryWithPagingInZone(final AbstractIRODSGenQuery irodsQuery,
			final int partialStartIndex, final String zoneName); @Override IRODSQueryResultSet getMoreResults(final IRODSQueryResultSet irodsQueryResultSet); @Override IRODSQueryResultSet getMoreResultsInZone(final IRODSQueryResultSet irodsQueryResultSet,
			final String zoneName); @Override void closeResults(final IRODSQueryResultSet irodsQueryResultSet);  }### Answer:
@Test public final void testGetMoreResults() throws Exception { String targetIrodsCollection = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties( testingProperties, IRODS_TEST_SUBDIR_PATH + "/" + collDir); String queryString = "select " + RodsGenQueryEnum.COL_COLL_NAME.getName() + " ," + RodsGenQueryEnum.COL_DATA_NAME.getName() + " where " + RodsGenQueryEnum.COL_COLL_NAME.getName() + " = '" + targetIrodsCollection + "'"; IRODSGenQuery irodsQuery = IRODSGenQuery.instance(queryString, 1000); IRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties); IRODSAccessObjectFactory accessObjectFactory = irodsFileSystem.getIRODSAccessObjectFactory(); IRODSGenQueryExecutor irodsGenQueryExecutor = accessObjectFactory.getIRODSGenQueryExecutor(irodsAccount); IRODSQueryResultSet resultSet = irodsGenQueryExecutor.executeIRODSQuery(irodsQuery, 0); Assert.assertTrue("did not get expected continuation", resultSet.isHasMoreRecords()); resultSet = irodsGenQueryExecutor.getMoreResults(resultSet); Assert.assertNotNull("result set was null", resultSet); Assert.assertTrue("did not get expected continuation", resultSet.isHasMoreRecords()); Assert.assertTrue("no results, some expected", resultSet.getResults().size() > 0); }