final RootXmlResource xmlResource = new RootXmlResource( xmlResourceStore );
final XmlConversionTestElement elementOnXml = XmlConversionTestElement.TYPE.instantiate( xmlResource );
xmlResource.save();
final XmlElement xmlElement = service.convert( elementOnXml, XmlElement.class );
assertNotNull( xmlElement );
assertSame( xmlElement, xmlResource.getXmlElement() );
assertSame( xmlElement, elementOnXml.adapt( XmlElement.class ) );
final XmlConversionTestElement.ListEntry childElement = elementOnXml.getList().insert();
final XmlElement childXmlElement = service.convert( childElement, XmlElement.class );
assertNotNull( childXmlElement );
assertSame( childXmlElement, ( (XmlResource) childElement.resource() ).getXmlElement() );
assertSame( childXmlElement, childElement.adapt( XmlElement.class ) );
assertNotSame( childXmlElement, xmlElement );