public void testXMLAdapter2()
{
Format format = m_metadata.getFormat("XML");
Message msg = m_metadata.getMessage("XML_PatientDemographics");
TransferObject to = ((MessageParser)format.getParser().getInstance(m_context))
.parse(new StringInput("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<a:Patient xmlns:a=\"http://nexj.com/nexj\" xmlns:b=\"http://nexj.com/nexj/b\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://nexj.com/nexj/integration.xsd\"><player><firstName>My1</firstName><lastName>Test</lastName><id type=\"OHIP\" b:id=\"111222333\"/></player></a:Patient>"), msg);
TransferObject player = (TransferObject)to.getValue("player");
List ids = (List)player.getValue("id");
TransferObject id = (TransferObject)ids.get(0);
assertEquals(id.getValue("id"), "111222333");
assertEquals(id.getValue("type"), "OHIP");