{
log.debug("testChoice> started");
long startTime = System.currentTimeMillis();
String xsdUrl = getXsd("xml/choice.xsd");
Root root = newChoiceRoot();
String xml = marshalChoiceRoot(xsdUrl, root);
StringReader reader = new StringReader(xml);
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
Root unmarshalled = (Root)unmarshaller.unmarshal(reader, new MappingObjectModelFactory(), null);
log.info("unmarhalled:\n" + unmarshalled);
assertEquals(root, unmarshalled);
log.debug("testChoice> done in " + (System.currentTimeMillis() - startTime));