}
@Test
public void testSessionInsert() throws Exception {
BatchExecutionCommandImpl cmd = new BatchExecutionCommandImpl();
cmd.setLookup( "ksession1" );
cmd.getCommands().add( new InsertObjectCommand( new Person( "lucaz",
25 ),
"person1" ) );
cmd.getCommands().add( new InsertObjectCommand( new Person( "hadrian",
25 ),
"person2" ) );
cmd.getCommands().add( new InsertObjectCommand( new Person( "baunax",
21 ),
"person3" ) );
cmd.getCommands().add( new FireAllRulesCommand() );
StringWriter xmlReq = new StringWriter();
Marshaller marshaller = getJaxbContext().createMarshaller();
marshaller.setProperty( "jaxb.formatted.output",
true );