public void testDoImportMefVersion2() throws Exception {
ServiceContext context = createServiceContext();
final File resource = new File(MEFLibIntegrationTest.class.getResource("mef2-example-2md.zip").getFile());
final User admin = loginAsAdmin(context);
Element params = new Element("request");
final List<String> metadataIds = MEFLib.doImport(params, context, resource, getStyleSheets());
assertEquals(2, metadataIds.size());
for (String metadataId : metadataIds) {
final Metadata metadata = _metadataRepo.findOne(metadataId);
assertNotNull(metadata);
assertEquals(admin.getId(), metadata.getSourceInfo().getOwner());
}
}