Map<String, Object> env = new HashMap<String, Object>();
env.putAll(AviatorEvaluator.FUNC_MAP);
env.put("eq_temp_1", predicate);
args[1] = new AviatorJavaType("eq_temp_1");
SeqFilterFunction fun = new SeqFilterFunction();
AviatorObject result = fun.call(env, args);
LinkedList list = (LinkedList) result.getValue(null);
assertEquals(1, list.size());
for (Object i : list) {
assertEquals("hello1", i);
}
}