### Question:
ReflectionUtilities { public static boolean instanceOf(final String fullClassName, Class c) { if (c != null) { Class currentClass = c; do { if (currentClass.getName().equals(fullClassName)) { return true; } currentClass = currentClass.getSuperclass(); } while (currentClass != null); } return false; } private  ReflectionUtilities(); static Object newInstance(final Class<?> classe); static Object newInstance(final Class<?> classe, final Object... parameters); static Object newInstance(final Class<?> classe, final String parameter); static Object newInstance(final Class<?> classe, final String parameter1, final String parameter2); static Object newInstance(final Class<?> classe, final CharSequence parameter); static Object invokeMethod(final Object object, final Method method); static Object invokeMethod(final Method method, final Object object, final Object... parameter); static Object invokeMethodEx(final Method method, final Object object, final Object parameter); static Method getMethod(final String propertyName, final Class<?> classe); static Method getMethod(final String propertyName, final Class<?> classe, final Class<?> parameterClass); static Method getMethod(final String propertyName, final Class<?> classe, final Class<?>... parameterClass); static Method getGetterFromName(String propertyName, final Class<?> rootClass); static Method getGetterFromAnnotation(final String propertyName, final Class<?> rootClass); static Method getSetterFromName(String propertyName, final Class<?> paramClass, final Class<?> rootClass); static Field getFieldFromName(String attribName, Class classe); static Object getValuesFromPath(String pathID, Object metadata); static boolean pathMatchObjectType(Object metadata, String pathID); static Object getAttributeValue(Object object, String attributeName); static Object getConditionalValuesFromPath(String pathID, String conditionalAttribute, String conditionalValue, Object metadata); static boolean instanceOf(final String fullClassName, Class c); static String getElementNameFromEnum(final Object enumeration);  }### Answer:
@Test public void instanceOfTest() { assertTrue(ReflectionUtilities.instanceOf("org.geotoolkit.ebrim.xml.v250.RegistryObjectType", UserType.class)); assertTrue(ReflectionUtilities.instanceOf("org.geotoolkit.ebrim.xml.v250.RegistryObjectType", ClassificationSchemeType.class)); assertFalse(ReflectionUtilities.instanceOf("org.geotoolkit.ebrim.xml.v250.RegistryObjectType", NotifyActionType.class)); }