repositoryService.createDeployment().addInputStream("JavaServiceExpression.bpmn20.xml",
new FileInputStream(filename)).deploy();
RuntimeService runtimeService = activitiRule.getRuntimeService();
Map<String, Object> variableMap = new HashMap<String, Object>();
variableMap.put("name", "Activiti");
variableMap.put("javaServiceBean", new JavaServiceBean());
variableMap.put("delegateBean", new JavaServiceTaskDelegate());
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("JavaServiceExpression", variableMap);
assertNotNull(processInstance.getId());
System.out.println("id " + processInstance.getId() + " "
+ processInstance.getProcessDefinitionId());