### Question:
IRODSSimpleQueryResultSet extends AbstractIRODSQueryResultSet { public static IRODSSimpleQueryResultSet instance(final AbstractAliasedQuery simpleQuery, final List<IRODSQueryResultRow> results, final List<String> columnNames, final boolean hasMoreRecords) { return new IRODSSimpleQueryResultSet(simpleQuery, results, columnNames, hasMoreRecords); } private  IRODSSimpleQueryResultSet(final AbstractAliasedQuery simpleQuery, final List<IRODSQueryResultRow> results,
			final List<String> columnNames, final boolean hasMoreRecords); static IRODSSimpleQueryResultSet instance(final AbstractAliasedQuery simpleQuery,
			final List<IRODSQueryResultRow> results, final List<String> columnNames, final boolean hasMoreRecords); @Override int getNumberOfResultColumns(); @Override List<String> getColumnNames(); AbstractAliasedQuery getSimpleQuery();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void testInstanceNullSimpleQuery() { AbstractAliasedQuery simpleQuery = null; @SuppressWarnings("unchecked") List<IRODSQueryResultRow> results = Mockito.mock(List.class); @SuppressWarnings("unchecked") List<String> columnNames = Mockito.mock(List.class); IRODSSimpleQueryResultSet.instance(simpleQuery, results, columnNames, false); }
@Test(expected = IllegalArgumentException.class) public void testInstanceNullResults() { AbstractAliasedQuery simpleQuery = Mockito.mock(SimpleQuery.class); List<IRODSQueryResultRow> results = null; @SuppressWarnings("unchecked") List<String> columnNames = Mockito.mock(List.class); IRODSSimpleQueryResultSet.instance(simpleQuery, results, columnNames, false); }
@Test(expected = IllegalArgumentException.class) public void testInstanceNullColumnNames() { AbstractAliasedQuery simpleQuery = Mockito.mock(SimpleQuery.class); @SuppressWarnings("unchecked") List<IRODSQueryResultRow> results = Mockito.mock(List.class); List<String> columnNames = null; IRODSSimpleQueryResultSet.instance(simpleQuery, results, columnNames, false); }