private CallBackBasicClient aCallBackClient;
@Before
public void setUp() throws Exception {
try {
NodeFactory factory = NodeFactory.getInstance();
NodeConfiguration configuration = factory.createNodeConfiguration();
configuration.setDomainURI("tuscany:default");
configuration.setURI("node1");
configuration.addContribution("c1", "./target/classes");
configuration.addDeploymentComposite("c1","CallBackService.composite");
//node1 = factory.createNode("CallBackService.composite", new Contribution("c1", "./target/classes"));
node1 = factory.createNode(configuration);
node1.start();
configuration = factory.createNodeConfiguration();
configuration.setDomainURI("tuscany:default");
configuration.setURI("node2");
configuration.addContribution("c1", "./target/classes");
configuration.addDeploymentComposite("c1","CallBackReference.composite");
//node2 = factory.newInstance().createNode("CallBackReference.composite", new Contribution("c1", "./target/classes"));
node2 = factory.createNode(configuration);
node2.start();
aCallBackClient = node2.getService(CallBackBasicClient.class, "CallBackBasicClient");
} catch (Exception ex){
ex.printStackTrace();