### Question:
ValueFilterJavascript extends StringFilter implements SuperCodable { @Override public String filter(String value) { try { return filter.filter(value); } catch (Exception e) { throw new RuntimeException("error invoking script", e); } } private  ValueFilterJavascript(); @Override void postDecode(); @Override void preEncode(); @Override String filter(String value); static String toString(Object o);  }### Answer:
@Test public void mainPort() throws Exception { ValueFilterJavascript f = Configs.decodeObject(ValueFilterJavascript.class, "source: \"value.length\""); String[] str = {"now is the time", "for all good men", "to come to", "the aid of the party"}; assertEquals("15", f.filter(str[0])); assertEquals("16", f.filter(str[1])); assertEquals("10", f.filter(str[2])); assertEquals("20", f.filter(str[3])); }