KieServerCommand create = new CreateContainerCommand(new KieContainerResource( containerId, releaseId1, null));
KieServerCommand call = new CallContainerCommand(containerId, payload);
KieServerCommand dispose = new DisposeContainerCommand(containerId);
List<KieServerCommand> cmds = Arrays.asList(create, call, dispose);
CommandScript script = new CommandScript(cmds);
List<ServiceResponse<? extends Object>> reply = client.executeScript(script);
for (ServiceResponse<? extends Object> r : reply) {
Assert.assertEquals(ServiceResponse.ResponseType.SUCCESS, r.getType());