private void validateModel(BpmnModel model) {
FlowElement flowElement = model.getMainProcess().getFlowElementMap().get("callactivity");
assertNotNull(flowElement);
assertTrue(flowElement instanceof CallActivity);
CallActivity callActivity = (CallActivity) flowElement;
assertEquals("callactivity", callActivity.getId());
assertEquals("Call activity", callActivity.getName());
assertEquals("processId", callActivity.getCalledElement());
List<IOParameter> parameters = callActivity.getInParameters();
assertEquals(2, parameters.size());
IOParameter parameter = parameters.get(0);
assertEquals("test", parameter.getSource());
assertEquals("test", parameter.getTarget());
parameter = parameters.get(1);
assertEquals("${test}", parameter.getSourceExpression());
assertEquals("test", parameter.getTarget());
parameters = callActivity.getOutParameters();
assertEquals(1, parameters.size());
parameter = parameters.get(0);
assertEquals("test", parameter.getSource());
assertEquals("test", parameter.getTarget());
}