assertNotNull(metaData);
List<PathMetaData> paths = metaData.getPaths();
assertNotNull(paths);
assertEquals(2, paths.size());
PathMetaData pmd = paths.get(0);
assertNotNull(pmd);
assertEquals("myejbs.jar", pmd.getPathName());
Set<PathEntryMetaData> includes = pmd.getIncludes();
assertNotNull(includes);
assertEquals(1, includes.size());
PathEntryMetaData pemd = includes.iterator().next();
assertNotNull(pemd);
assertEquals("com.acme.foo", pemd.getName());
Set<PathEntryMetaData> excludes = pmd.getExcludes();
assertNotNull(excludes);
pemd = excludes.iterator().next();
assertNotNull(pemd);
assertEquals("com.acme.foo.bar", pemd.getName());
assertEquals(1, excludes.size());
pmd = paths.get(1);
assertNotNull(pmd);
assertEquals("my.war/WEB-INF/classes", pmd.getPathName());
includes = pmd.getIncludes();
assertNotNull(includes);
assertEquals(1, includes.size());
pemd = includes.iterator().next();
assertNotNull(pemd);
assertEquals("com.acme.foo", pemd.getName());
assertNull(pmd.getExcludes());
}
finally
{
deployer.undeploy(unit);
}