public void testWrite() {
    StringReader reader = new StringReader(xpdl);

    Xmappr xmappr = new Xmappr(XPDLTaskScript.class);
    XPDLTaskScript task = (XPDLTaskScript) xmappr.fromXML(reader);

    JSONObject importObject = new JSONObject();
    task.write(importObject);

    assertEquals(jsonWrite, importObject.toString());
  }
  public void testWrite() {
    StringReader reader = new StringReader(xpdl);

    Xmappr xmappr = new Xmappr(XPDLTriggerResultLink.class);
    XPDLTriggerResultLink trigger = (XPDLTriggerResultLink) xmappr.fromXML(reader);

    JSONObject importObject = new JSONObject();
    trigger.write(importObject);

    assertEquals(jsonWrite, importObject.toString());
  }