@Test
  public void testForNameThrowsClassNotFoundException() {
    System.out.println("\nStarting ClassPathLoaderTest#testForNameThrowsClassNotFoundException");

    String classToLoad = "com.nowhere.DoesNotExist";

    assertThatThrownBy(() -> ClassPathLoader.getLatest().forName(classToLoad))
        .isInstanceOf(ClassNotFoundException.class);
  }
Verifies that {@link ClassPathLoader#getLatest()} throws <tt>ClassNotFoundException</tt> when
class does not exist.
geode-core/src/test/java/org/apache/geode/internal/classloader/ClassPathLoaderTest.java