.getResourceAsStream("xml-samples/persistence-schema-headers.xml");
Collection<JpaUnit> units = parser.getPersistenceUnits(new InputSource(in), root);
assertEquals(1, units.size());
JpaUnit info = (JpaUnit) units.iterator().next();
assertEquals("OrderManagement", info.getPersistenceUnitName());
// JTA is the default when type is ommitted
assertEquals(PersistenceUnitTransactionType.JTA, info.getTransactionType());
assertEquals(root, info.getPersistenceUnitRootUrl());
assertTrue(info.getDescription().startsWith("This unit manages orders"));
assertEquals("jdbc/MyOrderDB", info.getProperties().getProperty(
Provider.JTA_DATA_SOURCE_PROPERTY));
assertEquals(1, info.getMappingFileNames().size());
assertTrue(info.getMappingFileNames().contains("ormap.xml"));
assertEquals(2, info.getManagedClassNames().size());
assertTrue(info.getManagedClassNames().contains("com.widgets.Order"));
assertTrue(info.getManagedClassNames().contains("com.widgets.Customer"));
}