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