ClassUtils { public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } finally { if (cl == null) { cl = ClassUtils.class.getClassLoader(); } if (cl == null) { cl = ClassLoader.getSystemClassLoader(); } } return cl; }  static ClassLoader getDefaultClassLoader();  }
@Test public void testClassLoader() { assertEquals(ClassUtils.getDefaultClassLoader(), classLoader); }