assertTrue(definitions.getRootElements().size() == 1);
GlobalScriptTask task = (GlobalScriptTask) definitions.getRootElements().get(0);
assertEquals("my script", task.getName());
assertEquals("git status | grep modified | awk '{print $3}' | xargs echo | xargs git add", task.getScript());
assertEquals("bash", task.getScriptLanguage());
definitions.eResource().save(System.out, Collections.emptyMap());
}
@Test
public void testUserTaskUnmarshalling() throws Exception {
Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();