@Test
    public void testLoadClass() throws Exception {
        File file = new File("src/test/resources/plugin.war");
        if (!file.exists()) {
            throw new Exception("Failed to find test WAR: plugin.war at: " + file.getAbsolutePath());
        }
        PluginClassLoader classloader = new TestPluginClassLoader(file);
        Class<?> class1 = classloader.loadClass("io.apiman.quickstarts.plugin.PluginMain");
        Method mainMethod = class1.getMethod("main", new String[0].getClass());
        mainMethod.invoke(null, new Object[1]);
        
        try {
            classloader.loadClass("io.apiman.notfound.MyClass");
            Assert.fail("Should have gotten a classnotfound here!");
        } catch (Exception e) {
            Assert.assertEquals("io.apiman.notfound.MyClass", e.getMessage());
        }
    }
Test method for {@link io.apiman.common.plugin.PluginClassLoader#loadClass(java.lang.String)}.
@throws Exception exception catch-all
common/plugin/src/test/java/io/apiman/common/plugin/PluginClassLoaderTest.java