@Test
public void dataShouldBeCorrectlySelected() {

    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", ".inputJson.key[0]");
    final Map<String, Object> inputJson = new HashMap<>();
    inputJson.put("key", Collections.singletonList("VALUE"));
    inputData.put("inputJson", inputJson);
    task.setInputData(inputData);
    task.setOutputData(new HashMap<>());
    t.start(w, task, null);
    Assert.assertNull(task.getOutputData().get("error"));
    Assert.assertEquals("\"VALUE\"", task.getOutputData().get("result").toString());
    Assert.assertEquals("[\"VALUE\"]", task.getOutputData().get("resultList").toString());
}