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 testGenXml() throws Exception {
   PayloadArrayWrapper profile = createProfile();
   String xml = profile.toXml();
   PlistDebug.logTest(xml);
   assertEquals(xml, TEST_XML);
 }
 public void testGenAppXml() throws Exception {
   PayloadBase settings = getPolicy();
   String xml = settings.toXml();
   PlistDebug.logTest(xml);
   assertEquals(xml, TEST_APP_XML);
 }