path.setOsgi(true);
path.execute();
Object ref = project.getReference("testOSGi");
assertNotNull(ref);
assertTrue(ref instanceof Path);
Path p = (Path) ref;
assertEquals(4, p.size());
File cacheDir = path.getSettings().getDefaultRepositoryCacheBasedir();
File unpacked = new File(cacheDir, "packaging/module3/jar_unpackeds/module3-1.0");
assertEquals(new File(unpacked, "lib/ant-antlr.jar"), new File(p.list()[0]));
assertEquals(new File(unpacked, "lib/ant-apache-bcel.jar"), new File(p.list()[1]));
assertEquals(new File(unpacked, "lib/ant-apache-bsf.jar"), new File(p.list()[2]));
assertEquals(new File(unpacked, "lib/ant-apache-log4j.jar"), new File(p.list()[3]));
}