### Question:
Resources { public static Class<?> classForName(String className) throws ClassNotFoundException { return classLoaderWrapper.classForName(className); } Resources(); static ClassLoader getDefaultClassLoader(); static void setDefaultClassLoader(ClassLoader defaultClassLoader); static URL getResourceURL(String resource); static URL getResourceURL(ClassLoader loader, String resource); static InputStream getResourceAsStream(String resource); static InputStream getResourceAsStream(ClassLoader loader, String resource); static Properties getResourceAsProperties(String resource); static Properties getResourceAsProperties(ClassLoader loader, String resource); static Reader getResourceAsReader(String resource); static Reader getResourceAsReader(ClassLoader loader, String resource); static File getResourceAsFile(String resource); static File getResourceAsFile(ClassLoader loader, String resource); static InputStream getUrlAsStream(String urlString); static Reader getUrlAsReader(String urlString); static Properties getUrlAsProperties(String urlString); static Class<?> classForName(String className); static Charset getCharset(); static void setCharset(Charset charset);  }### Answer:
@Test void shouldGetClassForName() throws Exception { Class<?> clazz = Resources.classForName(ResourcesTest.class.getName()); assertNotNull(clazz); }
@Test void shouldNotFindThisClass() { Assertions.assertThrows(ClassNotFoundException.class, () -> Resources.classForName("some.random.class.that.does.not.Exist")); }
@Test public void shouldGetClassForName() throws Exception { Class<?> clazz = Resources.classForName(ResourcesTest.class.getName()); assertNotNull(clazz); }
@Test(expected = ClassNotFoundException.class) public void shouldNotFindThisClass() throws ClassNotFoundException { Resources.classForName("some.random.class.that.does.not.Exist"); }