SchemalessMarshaller marshaller = new SchemalessMarshaller();
marshaller.marshal(person, writer);
StringReader reader = new StringReader(writer.getBuffer().toString());
Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
SchemalessObjectModelFactory factory = new SchemalessObjectModelFactory();
Person unmarshalled = (Person)unmarshaller.unmarshal(reader, factory, null);
assertEquals(person, unmarshalled);
}