public void testEscaping() throws Exception {
//XXX find a way to automatically verify test
ByteArrayOutputStream out = new ByteArrayOutputStream();
BeanWriter writer = new BeanWriter(out);
writer.setWriteEmptyElements( true );
writer.enablePrettyPrint();
XMLIntrospector introspector = new XMLIntrospector();
introspector.setAttributesForPrimitives(true);
writer.setXMLIntrospector(introspector);
writer.write(new LoopBean("Escape<LessThan"));
writer.write(new LoopBean("Escape>GreaterThan"));