### Question:
ReflectionUtil { public static boolean typeExists(String theName) { try { Class.forName(theName); return true; } catch (ClassNotFoundException theE) { return false; } }  static List<Method> getDeclaredMethods(Class<?> theClazz); static String describeMethodInSortFriendlyWay(Method theMethod); static Class<?> getGenericCollectionTypeOfField(Field next); static Class<?> getGenericCollectionTypeOfFieldWithSecondOrderForList(Field next); static Class<?> getGenericCollectionTypeOfMethodParameter(Method theMethod, int theParamIndex); static Class<?> getGenericCollectionTypeOfMethodReturnType(Method theMethod); static boolean isInstantiable(Class<?> theType); static T newInstance(Class<T> theType); static T newInstance(Class<T> theType, Class<?> theArgumentType, Object theArgument); static Object newInstanceOfFhirServerType(String theType); static T newInstanceOrReturnNull(String theClassName, Class<T> theType); @SuppressWarnings("unchecked") static T newInstanceOrReturnNull(String theClassName, Class<T> theType, Class<?>[] theArgTypes, Object[] theArgs); static boolean typeExists(String theName); static final Object[] EMPTY_OBJECT_ARRAY; static final Class<?>[] EMPTY_CLASS_ARRAY; }### Answer:
@Test public void testTypeExists() { assertFalse(ReflectionUtil.typeExists("ca.Foo")); assertTrue(ReflectionUtil.typeExists(String.class.getName())); }