### Question:
IRODSSimpleQueryResultSet extends AbstractIRODSQueryResultSet { @Override public int getNumberOfResultColumns() { return columnNames.size(); } 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 public void testGetNumberOfResultColumns() { int colCount = 10; AbstractAliasedQuery simpleQuery = Mockito.mock(SimpleQuery.class); @SuppressWarnings("unchecked") List<IRODSQueryResultRow> results = Mockito.mock(List.class); @SuppressWarnings("unchecked") List<String> columnNames = Mockito.mock(List.class); Mockito.when(columnNames.size()).thenReturn(colCount); IRODSSimpleQueryResultSet resultSet = IRODSSimpleQueryResultSet.instance(simpleQuery, results, columnNames, false); Assert.assertEquals("did not get col count", colCount, resultSet.getNumberOfResultColumns()); }