@Test
public void testNestedCompositeServiceSingleService() {
Composite composite = createNestCompositeServiceBinding();
((Composite)composite.getComponents().get(0).getImplementation()).getComponents().get(0).getServices()
.remove(1);
Binding b =
((Composite)composite.getComponents().get(0).getImplementation()).getComponents().get(0).getServices()
.get(0).getBindings().get(0);
try {
nodeConfigurationBuilder.build(nodeComposite(composite), null, null);
assertEquals("http://myhost:8080/root/c1/c2", b.getURI());
} catch (Exception ex) {
System.out.println(ex.toString());
fail();
}
}