### Question:
ClassLoaderUtil { public static Class loadClass(ClassLoader classLoader, String className) throws ClassNotFoundException { if (classLoader == null) { classLoader = Thread.currentThread().getContextClassLoader(); } return ClassUtils.getClass(classLoader, className); }  static Class loadClass(ClassLoader classLoader, String className); static Class loadClass(String className);  }### Answer:
@Test public void testLoadClass() { Class<?> clazz; String className = "com.meituan.dorado.common.util.ClassLoaderUtil"; try { clazz = ClassLoaderUtil.loadClass(className); Assert.assertEquals(clazz.getName(), className); } catch (ClassNotFoundException e) { Assert.fail(e.getMessage()); } try { clazz = ClassLoaderUtil.loadClass("com.meituan.dorado.common.ClassLoadUtil"); Assert.fail(); } catch (ClassNotFoundException e) { Assert.assertEquals(e.getClass(), ClassNotFoundException.class); } }