### Question:
IRODSGenQuery extends AbstractIRODSGenQuery { public static IRODSGenQuery instance(final String queryString, final int numberOfResultsDesired) throws JargonException { return new IRODSGenQuery(queryString, numberOfResultsDesired, RowCountOptions.NO_ROW_COUNT, 0); } private  IRODSGenQuery(final String queryString, final int numberOfResultsDesired,
			final RowCountOptions rowCountOption, final int skip); private  IRODSGenQuery(final String queryString, final int numberOfResultsDesired); static IRODSGenQuery instance(final String queryString, final int numberOfResultsDesired); static IRODSGenQuery instance(final String queryString, final int numberOfResultsDesired,
			final RowCountOptions rowCountOption); String getQueryString(); @Override String toString();  }### Answer:
@Test public final void testInstance() throws Exception { IRODSGenQuery query = IRODSGenQuery.instance("test", 1); Assert.assertEquals("test", query.getQueryString()); Assert.assertEquals(1, query.getNumberOfResultsDesired()); }
@Test(expected = IllegalArgumentException.class) public final void testInstanceNullQuery() throws Exception { IRODSGenQuery.instance(null, 0); }
@Test(expected = IllegalArgumentException.class) public final void testInstanceZeroResults() throws Exception { IRODSGenQuery.instance("test", 0); }