### Question:
CollectionAOHelper extends AOHelper { public static void buildSelectsNeededForCollectionsInCollectionsAndDataObjectsListingEntry( final IRODSGenQueryBuilder builder) throws GenQueryBuilderException { if (builder == null) { throw new IllegalArgumentException("null builder"); } builder.addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_PARENT_NAME) .addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_NAME) .addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_CREATE_TIME) .addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_MODIFY_TIME) .addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_ID) .addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_OWNER_NAME) .addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_OWNER_ZONE) .addSelectAsGenQueryValue(RodsGenQueryEnum.COL_COLL_TYPE); }  static String buildSelects(); static void buildSelectsByAppendingToBuilder(final IRODSGenQueryBuilder builder); static String buildMetadataSelects(); static Collection buildCollectionFromResultSetRow(final IRODSQueryResultRow row); static StringBuilder buildConditionPart(final AVUQueryElement queryElement); static void appendConditionPartToBuilderQuery(final AVUQueryElement queryElement,
			final IRODSGenQueryBuilder builder); static List<Collection> buildListFromResultSet(final IRODSQueryResultSetInterface resultSet); static CollectionAndDataObjectListingEntry buildCollectionListEntryFromResultSetRowForCollectionQuery(
			final IRODSQueryResultRow row, final int totalRecords); static CollectionAndDataObjectListingEntry buildCollectionListEntryFromResultSetRowForDataObjectQuery(
			final IRODSQueryResultRow row, final int totalRecords); static void buildSelectsNeededForCollectionsInCollectionsAndDataObjectsListingEntry(
			final IRODSGenQueryBuilder builder); static void buildInheritanceQueryForCollectionAbsolutePath(final String absolutePathToCollection,
			final IRODSGenQueryBuilder builder); static void buildUserFilePermissionForCollection(final List<UserFilePermission> userFilePermissions,
			final IRODSQueryResultRow row, final String irodsAbsolutePath); static void buildUserFilePermissionForDataObject(final List<UserFilePermission> userFilePermissions,
			final IRODSQueryResultRow row, final String irodsAbsolutePath, final String currentZone); static void buildACLQueryForCollectionName(final String irodsCollectionAbsolutePath,
			final IRODSGenQueryBuilder builder); static final Logger log; }### Answer:
@Test public void testBuildSelectsNeededForCollectionsInCollectionsAndDataObjectsListingEntry() throws GenQueryBuilderException { final IRODSGenQueryBuilder builder = new IRODSGenQueryBuilder(false, null); buildSelectsNeededForCollectionsInCollectionsAndDataObjectsListingEntry(builder); final List<GenQuerySelectField> selectFields = builder.exportIRODSQueryFromBuilder(1) .convertToTranslatedIRODSGenQuery().getSelectFields(); int numTypeCols = 0; for (GenQuerySelectField field : selectFields) { final String typeCol = RodsGenQueryEnum.COL_COLL_TYPE.getName(); if (field.getSelectFieldColumnName().equals(typeCol)) { numTypeCols++; } } assertEquals("should be 1 and only 1 type column", 1, numTypeCols); }