Person john = new Person();
john.setName("John Smith");
List<Command> commands = new ArrayList<Command>();
commands.add(CommandFactory.newInsert(john, "john"));
BatchExecutionCommand batchExecutionCommand = CommandFactory.newBatchExecution(commands);
ExecutionResults response = (ExecutionResults) template.requestBody("direct:test-with-session",
batchExecutionCommand);
assertTrue( "Expected valid ExecutionResults object",
response != null );