### Question:
ClassLoaderUtils { public static ClassLoader getClassLoader() { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); return (classLoader != null) ? classLoader : ClassLoaderUtils.class.getClassLoader(); } private  ClassLoaderUtils(); static ClassLoader getClassLoader(); @SuppressWarnings("unchecked") static Class<T> loadClass(String className); @SuppressWarnings("unchecked") static boolean findClass(String className); static URL getResource(String resourceName); static InputStream getResourceAsStream(String resourceName);  }### Answer:
@Test public void testGetClassLoader() { ClassLoader classLoader = ClassLoaderUtils.getClassLoader(); assertSame(Thread.currentThread().getContextClassLoader(), classLoader); try { Thread.currentThread().setContextClassLoader(null); assertSame(ClassLoaderUtils.class.getClassLoader(), ClassLoaderUtils.getClassLoader()); } finally { Thread.currentThread().setContextClassLoader(classLoader); } }