public void testParseXml() throws Exception {
    PayloadXmlMsgParser parser = new PayloadXmlMsgParser(TEST_XML);
    PayloadArrayWrapper profile = (PayloadArrayWrapper) parser.getPayloadDescriptor();

    PlistDebug.logTest(profile.toString());

    assertEquals(profile, createProfile());
    assertEquals(parser.getPayload(PayloadBase.PAYLOAD_TYPE_MEMORY_POLICY), getPolicy());
    assertTrue(
        ObjectComparator.equals(
            parser.getPayload(PayloadBase.PAYLOAD_TYPE_MEMORY_POLICY), getPolicy()));
  }
  public void testTwoWay() throws Exception {
    PayloadXmlMsgParser parser = new PayloadXmlMsgParser(TEST_XML);
    PayloadArrayWrapper profile = (PayloadArrayWrapper) parser.getPayloadDescriptor();

    assertEquals(TEST_XML, profile.toXml());
  }