### Question:
IRODSDataConversionUtil { public static SpecColType getCollectionTypeFromIRODSValue(final String irodsValue) { if (irodsValue == null || irodsValue.isEmpty()) { return SpecColType.NORMAL; } if (irodsValue.equals(COLL_TYPE_LINK)) { return SpecColType.LINKED_COLL; } if (irodsValue.equals(COLL_TYPE_MOUNT)) { return SpecColType.MOUNTED_COLL; } if (irodsValue.equals(COLL_TYPE_HAAW) || irodsValue.equals(COLL_TYPE_TAR) || irodsValue.equals(COLL_TYPE_MSSO)) { return SpecColType.STRUCT_FILE_COLL; } throw new IllegalArgumentException("unknown iRODS collection type: " + irodsValue); } private  IRODSDataConversionUtil(); static int getIntOrZeroFromIRODSValue(final String irodsValue); static long getLongOrZeroFromIRODSValue(final String irodsValue); static Date getDateFromIRODSValue(final String irodsValue); static SpecColType getCollectionTypeFromIRODSValue(final String irodsValue); static String escapeSingleQuotes(final String inputString);  }### Answer:
@Test public void testGetLinkedCollFromIRODSValue() { assertEquals("linked collection maps incorrectly", SpecColType.LINKED_COLL, getCollectionTypeFromIRODSValue(COLL_TYPE_LINK)); }
@Test public void testGetMountedCollFromIRODSValue() { assertEquals("mounted collection maps incorrectly", SpecColType.MOUNTED_COLL, getCollectionTypeFromIRODSValue(COLL_TYPE_MOUNT)); }
@Test public void testGetHAAWCollFromIRODSValue() { assertEquals("HAAW file maps incorrectly", SpecColType.STRUCT_FILE_COLL, getCollectionTypeFromIRODSValue(COLL_TYPE_HAAW)); }
@Test public void testGetTARCollFromIRODSValue() { assertEquals("TAR file maps incorrectly", SpecColType.STRUCT_FILE_COLL, getCollectionTypeFromIRODSValue(COLL_TYPE_TAR)); }