@Ignore("TUSCANY-3953")
@Test
public void DistributedInstall() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
TuscanyRuntime runtime = TuscanyRuntime.newInstance();
try {
Node nodeA = runtime.createNode("uri:DistributedInstall");
nodeA.installContribution("http://repository.apache.org/content/groups/snapshots/org/apache/tuscany/sca/samples/helloworld/2.0-SNAPSHOT/helloworld-2.0-SNAPSHOT.jar");
nodeA.installContribution("src/test/resources/export.jar");
Assert.assertEquals(2, nodeA.getInstalledContributionURIs().size());
Assert.assertTrue(nodeA.getInstalledContributionURIs().contains("export"));
Assert.assertTrue(nodeA.getInstalledContributionURIs().contains("helloworld"));
Contribution cA = nodeA.getContribution("helloworld");
Assert.assertNotNull(cA);
Node nodeB = runtime.createNode("uri:DistributedInstall");
Assert.assertEquals(2, nodeB.getInstalledContributionURIs().size());
Assert.assertTrue(nodeB.getInstalledContributionURIs().contains("export"));
Assert.assertTrue(nodeB.getInstalledContributionURIs().contains("helloworld"));
Contribution cB = nodeB.getContribution("helloworld");
Assert.assertNotNull(cB);
ContributionDescription cd = ((NodeImpl)nodeB).getInstalledContribution("export");
Assert.assertEquals(1, cd.getJavaExports().size());
Assert.assertEquals("sample", cd.getJavaExports().get(0));