{
InputStream is = null;
try {
String location = "file1/META-INF/persistence.xml";
is = getClass().getClassLoader().getResourceAsStream(location);
PersistenceDescriptor descriptor = new PersistenceDescriptorImpl(location, is);
Bundle b = Skeleton.newMock(Bundle.class);
Collection<? extends ParsedPersistenceUnit> parsedUnits = new PersistenceDescriptorParserImpl().parse(b, descriptor);
assertEquals("An incorrect number of persistence units has been returned.", 4, parsedUnits.size());