List<Command> cmds = new ArrayList<Command>();
req.setCommands(cmds);
req.setDeploymentId("depId");
req.setProcessInstanceId(43l);
req.setVersion("6.0.1.0");
StartProcessCommand spCmd = new StartProcessCommand("test.proc.yaml");
cmds.add(spCmd);
spCmd.getParameters().put("one", "a");
spCmd.getParameters().put("two", "B");
Object weirdParam = new Integer[] { 59, 2195 };
spCmd.getParameters().put("thr", weirdParam);
addClassesToSerializationProvider(weirdParam.getClass());
JaxbCommandsRequest newReq = testRoundTrip(req);
assertEquals(((StartProcessCommand) newReq.getCommands().get(0)).getParameters().get("two"), "B");
req = new JaxbCommandsRequest("deployment", new StartProcessCommand("org.jbpm.humantask"));
newReq = testRoundTrip(req);
CorrelationKeyInfo corrKey = new CorrelationKeyInfo();
corrKey.addProperty(new CorrelationPropertyInfo("null", "val"));