// Set up false sub filter
testLiteral = new LiteralExpressionImpl("incorrect test string data");
PropertyIsEqualTo filterFalse = fac.equals(testAttribute, testLiteral);
// Test AND for false positives
And filter = fac.and(filterFalse, filterTrue);
LOGGER.finer( filter.toString());
LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
assertTrue(!filter.evaluate(testFeature));
// Test AND for false positives
filter = fac.and(filterTrue, filterFalse);
LOGGER.finer( filter.toString());
LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
assertTrue(!filter.evaluate(testFeature));
// Test AND for false positives
filter = fac.and(filterTrue, filterTrue);
LOGGER.finer( filter.toString());
LOGGER.finer( "contains feature: " + filter.evaluate(testFeature));
assertTrue(filter.evaluate(testFeature));
// finally test nothing shortcut
assertFalse(fac.not(filter).evaluate(testFeature));
}