ContributionFactory factory = new ContributionFactoryImpl();
ContributionMetadataLoaderImpl loader =
new ContributionMetadataLoaderImpl(new DefaultAssemblyFactory(), factory);
Contribution contribution = factory.createContribution();
contribution.setModelResolver(new ModelResolverImpl(getClass().getClassLoader()));
loader.load(contribution, reader);
assertNotNull(contribution);
assertEquals(1, contribution.getImports().size());
assertEquals(1, contribution.getExports().size());
assertEquals(2, contribution.getDeployables().size());
}