@Test
public void testXStreamParser() throws ResourceObjectException, IOException {

	String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><model message=\"Lorem ipsum\"><value>1</value></model>";
	
	ResourceObject file = new ByteArrayResourceObject("test", "test", xml.getBytes(), 0);
	Model object = file.parsedTo(xml(Model.class)).asIs();
	assertEquals("Lorem ipsum", object.getMessage());
	assertEquals(1, object.getValue());
}