ids.add(id);
pl.setValue("ids", ids);
pat.setValue("player", pl);
Format format = m_metadata.getFormat("Object");
Message msg = m_metadata.getMessage("Object_PatientDemographics");
ObjectOutput out = new ObjectOutput();
((MessageFormatter)format.getFormatter().getInstance(m_context)).format(pat, msg, out);
TransferObject patCompare = ((MessageParser)format.getParser().getInstance(m_context))
.parse(new ObjectInput(out.getObject()), msg);
TransferObject plCompare = (TransferObject)patCompare.getValue("player");
List idsCompare = (List)plCompare.getValue("ids");
TransferObject idCompare = (TransferObject)idsCompare.get(0);
assertEquals("OHIP", idCompare.getValue("type"));
assertEquals("111222333", idCompare.getValue("id"));