BPMExchangeHandler handler = new BPMExchangeHandler(bci_model, serviceDomain, serviceName);
Service controlService = serviceDomain.registerService(serviceName, JavaService.fromClass(ControlProcess.class), handler);
serviceDomain.registerServiceReference(controlService.getName(), controlService.getInterface(), controlService.getProviderHandler());
handler.start();
Invoker processInvoker = new Invoker(serviceDomain, serviceName);
Message processResponse = processInvoker.operation("process").sendInOut(null);
Long processInstanceId = (Long)processResponse.getContext().getPropertyValue(PROCESSS_INSTANCE_ID_PROPERTY);
Invoker signalInvoker = new Invoker(serviceDomain, serviceName);
signalInvoker.operation("signal").property(PROCESSS_INSTANCE_ID_PROPERTY, processInstanceId).sendInOut(null);
handler.stop();
Assert.assertEquals("message handled", holder.getValue());
}