### Question:
ReflectionUtil { public static boolean isCollectionClass(Class checkClass) { Objects.requireNonNull(checkClass, "Class is required"); boolean collection = false; if (checkClass.getSimpleName().equalsIgnoreCase(List.class.getSimpleName()) || checkClass.getSimpleName().equalsIgnoreCase(Map.class.getSimpleName()) || checkClass.getSimpleName().equalsIgnoreCase(Collection.class.getSimpleName()) || checkClass.getSimpleName().equalsIgnoreCase(Queue.class.getSimpleName()) || checkClass.getSimpleName().equalsIgnoreCase(Set.class.getSimpleName())) { collection = true; } return collection; }  static boolean isComplexClass(Class fieldClass); static boolean isCollectionClass(Class checkClass); static List<Field> getAllFields(Class typeClass); static boolean isSubLookupEntity(Class entityClass); static boolean isSubClass(String className, Class entityClass); static boolean isFieldsDifferent(Object original, Object newField); static int compareObjects(T origin, T other); static Field getField(Object entity, String fieldName); static final String LOOKUP_ENTITY; static final String BASECOMPONENT_ENTITY; static final String COMPOSITE_KEY_SEPERATOR; static final String COMPOSITE_KEY_REPLACER; }### Answer:
@Test public void testIsCollectionClass() { System.out.println("isCollectionClass"); boolean expResult = true; boolean result = ReflectionUtil.isCollectionClass(List.class); assertEquals(expResult, result); expResult = false; result = ReflectionUtil.isCollectionClass(ArrayList.class); assertEquals(expResult, result); expResult = false; result = ReflectionUtil.isCollectionClass(TestModel.class); assertEquals(expResult, result); }