@Test
 public void testAct() throws Exception {
   String path = ProcessDefManagerTest.class.getClassLoader().getResource("act.json").getPath();
   String value = FileUtils.readFileToString(new File(path));
   BpmnJsonConverter jsonConverter = new BpmnJsonConverter();
   JsonNode jsonNode = new ObjectMapper().readTree(value);
   BpmnModel model = jsonConverter.convertToBpmnModel(jsonNode);
   Map<String, List<ExtensionAttribute>> map = model.getProcesses().get(0).getAttributes();
   int i = 0;
 }
  @Test
  public void testJSON() throws Exception {
    String path = ProcessDefManagerTest.class.getClassLoader().getResource("act.json").getPath();
    String value = FileUtils.readFileToString(new File(path));
    BpmnJsonConverter jsonConverter = new BpmnJsonConverter();
    JsonNode jsonNode = new ObjectMapper().readTree(value);
    BpmnModel bpmnModel = jsonConverter.convertToBpmnModel(jsonNode);
    BpmnXMLConverter bpmnXMLConverter = new BpmnXMLConverter();
    byte[] data = bpmnXMLConverter.convertToXML(bpmnModel, "UTF-8");
    String xml = new String(data);
    System.out.println(xml);

    int i = 0;
  }