Assert.assertEquals("sample-helloworld/compositeImpl.composite", xs.get(0));
}
@Test
public void nestedTest1() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException, XMLStreamException, FileNotFoundException {
Node node = TuscanyRuntime.newInstance().createNode("NestedTest");
String curi = node.installContribution("src/test/resources/helloworld2.jar");
node.startComposite(curi, "compositeImpl.composite");
String compositeURI = node.addDeploymentComposite(curi, new FileReader("src/test/resources/nested.composite"));
node.startComposite(curi, compositeURI);
List<String> xs = ((NodeImpl)node).updateUsingComposites(curi, "helloworld.composite");
Assert.assertEquals(2, xs.size());
Assert.assertTrue(xs.contains("helloworld2/compositeImpl.composite"));
Assert.assertTrue(xs.contains("helloworld2/nested.composite"));