public void testRead() throws Exception {
XMLStreamReader reader = xmlInputFactory.createXMLStreamReader(new StringReader(VALID_XML));
AssemblyFactory assemblyFactory = new DefaultAssemblyFactory();
ContributionFactory contributionFactory = new DefaultContributionFactory();
ContributionMetadataProcessor processor =
new ContributionMetadataProcessor(assemblyFactory, contributionFactory, null);
Contribution contribution = contributionFactory.createContribution();
contribution.setModelResolver(new TestModelResolver(contribution, null));
contribution = processor.read(reader);
assertNotNull(contribution);
assertEquals(2, contribution.getDeployables().size());
}