ClassUtils { public static ClassLoader getDefaultClassLoader() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } catch (Throwable ex) { } if (cl == null) { cl = ClassUtils.class.getClassLoader(); } return cl; }  static ClassLoader getDefaultClassLoader();  }
@Test public void testGetDefaultClassLoader() { assertNotNull(ClassUtils.getDefaultClassLoader()); }