}
public void testLoad() throws Exception {
XMLStreamReader reader = xmlFactory.createXMLStreamReader(new StringReader(VALID_XML));
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());