*/
public class ContributionTestCase {
@Test
public void testRead() throws Exception {
Deployer deployer = new DefaultDeployer();
File file = new File("../../samples/binding-sca/contribution-calculator/target/sample-contribution-binding-sca-calculator.jar");
URL url = file.toURI().toURL();
Monitor monitor = deployer.createMonitor();
Contribution contribution = deployer.loadContribution(url.toURI(), url, monitor);
deployer.build(Arrays.asList(contribution), Arrays.asList(contribution), null, monitor);
// Ferkle around in the contribution verifying it looks as expected
Assert.assertNotNull(contribution);
List<Composite> deployables = contribution.getDeployables();
Assert.assertEquals(2, deployables.size());