ser.addAll(repos);
ByteArrayOutputStream out = new ByteArrayOutputStream();
ser.serialize(new OutputStreamWriter(out), MetaDataSerializer.PRETTY);
byte[] bytes = out.toByteArray();
XMLPersistenceMappingParser parser =
new XMLPersistenceMappingParser((JDBCConfiguration)conf);
parser.parse(new InputStreamReader
(new ByteArrayInputStream(bytes)), "bytes");
MetaDataRepository mdr2 = parser.getRepository();
ClassMetaData _entityMeta2 =
mdr2.getMetaData(BaseTestEntity1.class, null, true);
// Assert metadata is populated correctly