### Question:
ECQL { public static Expression toExpression(String ecqlExpression) throws CQLException { return toExpression(ecqlExpression, null); } private  ECQL(); static Filter toFilter(final String ecqlPredicate); static Filter toFilter(final String ecqlPredicate, final FilterFactory filterFactory); static Expression toExpression(String ecqlExpression); static Expression toExpression(final String ecqlExpression,
            final FilterFactory filterFactory); static List<Filter> toFilterList(final String ecqlSequencePredicate); static List<Filter> toFilterList(final String ecqlSequencePredicate, FilterFactory filterFactory);  }### Answer:
@Test public void expression() throws Exception{ Expression expr = ECQL.toExpression("A + 1"); Assert.assertTrue(expr instanceof Add); }
@Test public void toExpressionUsesProvidedFilterFactory() throws Exception { final boolean[] called = { false }; FilterFactory ff = new FilterFactoryImpl() { public PropertyName property(String propName) { called[0] = true; return super.property(propName); } }; ECQL.toExpression("attName", ff); Assert.assertTrue("Provided FilterFactory was not called", called[0]); }