### Question:
ReflectionUtil { public static boolean isSubClass(String className, Class entityClass) { if (entityClass == null) { return false; } if (className.equals(entityClass.getSimpleName())) { return true; } else { return isSubClass(className, entityClass.getSuperclass()); } }  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 testIsSubClass() { System.out.println("isSubClass"); boolean expResult = false; boolean result = ReflectionUtil.isSubClass(ReflectionUtil.BASECOMPONENT_ENTITY, TestModel.class); assertEquals(expResult, result); expResult = false; result = ReflectionUtil.isSubClass(ReflectionUtil.BASECOMPONENT_ENTITY, TestModel.class); assertEquals(expResult, result); }