@Test
public void testToConfigDeclaration() throws Exception {

    final String path = ".";
    ConfigurationFactory factory = new ConfigurationFactory();
    Deployments deployments = (Deployments) factory.toConfigDeclaration("", new URI("new://Deployments?classpath="
            + path));
    URLClassLoader cl = (URLClassLoader) deployments.getClasspath();
    URL[] urls = cl.getURLs();
    assertEquals(urls[0], new File(path).toURI().normalize().toURL());
}