{
public void testWithJar() throws Exception
{
//Getting the classloader for UnifiedVirtualFile which lives in SPI -> external jar (from the maven repo)
ClassLoader cl = UnifiedVirtualFile.class.getClassLoader();
ResourceLoaderAdapter ula = new ResourceLoaderAdapter(cl);
UnifiedVirtualFile deployment = ula.findChild("org/jboss/wsf/spi/deployment/");
assertNotNull(deployment);
assertTrue(deployment.toURL().toExternalForm().contains("jar!")); //check we got a URL to a jar
assertEquals("deployment/", deployment.getName());
List<UnifiedVirtualFile> children = deployment.getChildren();
assertNotNull(children);