@Test
public void test1() throws Exception {
JAXBContext jaxbContext = getJaxbContext();
List<GenericCommand< ? >> cmds = new ArrayList<GenericCommand< ? >>();
cmds.add( new InsertObjectCommand( new Person( "darth",
21 ),
"p" ) );
cmds.add( new GetGlobalCommand( "xxx" ) );
cmds.add( new SetGlobalCommand( "yyy",
new Person( "yoda",
21 ) ) );
BatchExecutionCommandImpl batch = new BatchExecutionCommandImpl( cmds );
Marshaller marshaller = jaxbContext.createMarshaller();
marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT,