FilterFactory2 ff = (FilterFactory2) dataStore.getFilterFactory();
PropertyIsLike caseSensitiveLike = ff.like(ff.property(aname("stringProperty")),
"Z*", "*", "?", "\\", true);
PropertyIsLike caseInsensitiveLike = ff.like(ff.property(aname("stringProperty")),
"Z*", "*", "?", "\\", false);
PropertyIsLike caseInsensitiveLike2 = ff.like(ff.property(aname("stringProperty")),
"z*", "*", "?", "\\", false);
assertEquals(0, featureSource.getCount(new Query(null, caseSensitiveLike)));
assertEquals(1, featureSource.getCount(new Query(null, caseInsensitiveLike)));
assertEquals(1, featureSource.getCount(new Query(null, caseInsensitiveLike2)));
}