@Test
public void testEvaluateFeature() throws Exception{

    SimpleFeatureType type = DataUtilities.createType("ns", "name:string,geom:Geometry");
    SimpleFeatureBuilder build = new SimpleFeatureBuilder(type);
    build.add("testName");
    build.add(null);
    SimpleFeature feature = build.buildFeature(null);
    f.setParameters( list(ff.property("nonExistant")));
    Assert.assertEquals(Boolean.FALSE, f.evaluate(feature));
    f.setParameters(list(ff.property("name")));
    Assert.assertEquals(Boolean.TRUE, f.evaluate(feature));
    f.setParameters(list(ff.property("geom")));
    Assert.assertEquals(Boolean.TRUE, f.evaluate(feature));
}