filterDef.put("scope", "application");
filterDef.put("script", "{ row -> if (row['value'].toInteger() > 21) return row else return null }");
request.getOperations().add(new Operation()
.withId("1").withType(ActionFactory.CREATE_FILTER).withArguments(filterDef));
Client cl = new Client();
Response response = cl.post("http://127.0.0.1:7654", request);
List<Map> results = (List<Map>) response.getResults().get("1");
Assert.assertEquals(new ImmutableMap.Builder<String, Object>().put("result", "ok").build(), results.get(0));
}
}