data.put(URI.create("lib1/lib1/lib1.jar"), "../../lib2/lib2/lib2.jar");
data.put(URI.create("lib2/lib2/lib2.jar"), "../lib2a/lib2a.jar");
data.put(URI.create("lib2/lib2a/lib2a.jar"), "../../lib3/lib3/lib3.jar ../../lib1/lib1/lib1.jar");
DeploymentContext.JarFileFactory factory = new MockJarFileFactory(data);
DeploymentContext context = new DeploymentContext(new File("."), null, new Environment(Artifact.create("test/foo/1/ear")), new AbstractName(URI.create("test/foo/1/ear?name=test")), ConfigurationModuleType.EAR, new Jsr77Naming(), new MockConfigurationManager());
ClassPathList classPathList = new ClassPathList();
context.getCompleteManifestClassPath(start, start.getRelativeURI(), resolutionURI, classPathList, exclusions, factory, new ArrayList<DeploymentException>());
assertEquals(4, classPathList.size());
assertEquals("../../../lib1/lib1/lib1.jar", classPathList.get(0));
assertEquals("../../../lib2/lib2/lib2.jar", classPathList.get(1));