ModuleList exclusions = new ModuleList();
Map<URI, String> data = new HashMap<URI, String>();
data.put(URI.create("lib1.jar"), "lib1.jar lib2.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(2, classPathList.size());
assertEquals("../lib1.jar", classPathList.get(0));
assertEquals("../lib2.jar", classPathList.get(1));