AssemblyFactory assemblyFactory = new DefaultAssemblyFactory();
ContributionFactory contributionFactory = new ContributionFactoryImpl();
ContributionMetadataProcessor loader =
new ContributionMetadataProcessor(assemblyFactory, contributionFactory, null);
Contribution contribution = contributionFactory.createContribution();
contribution.setModelResolver(new ModelResolverImpl(getClass().getClassLoader()));
contribution = loader.read(reader);
assertNotNull(contribution);
assertEquals(2, contribution.getDeployables().size());
}