@Test
public void simpleErrorShouldBeDisplayed() {

    final JsonJqTransform t = new JsonJqTransform(objectMapper);
    final Workflow w = new Workflow();
    final Task task = new Task();
    final Map<String, Object> inputData = new HashMap<>();
    inputData.put("queryExpression", "{");
    task.setInputData(inputData);
    task.setOutputData(new HashMap<>());
    t.start(w, task, null);
    Assert.assertTrue(((String)task.getOutputData().get("error")).startsWith("Encountered \"<EOF>\" at line 1, column 1."));
}