@Test
    public void testGetResourceFromDep() throws Exception {
        File file = new File("src/test/resources/plugin-with-depResource.war");
        if (!file.exists()) {
            throw new Exception("Failed to find test WAR: plugin.war at: " + file.getAbsolutePath());
        }
        PluginClassLoader classloader = new TestPluginClassLoader(file);
        URL resource = classloader.getResource("META-INF/services/org/apache/activemq/transport/tcp");
        Assert.assertNotNull(resource);
        try (InputStream input = resource.openStream()) {
            String data = IOUtils.toString(input);
            Assert.assertEquals(normalize(RESOURCE_FROM_DEP_EXPECTED), normalize(data));
        }
    }
Test method for {@link io.apiman.common.plugin.PluginClassLoader#getResource(String)}.
@throws Exception exception catch-all
common/plugin/src/test/java/io/apiman/common/plugin/PluginClassLoaderTest.java