public void testFilter() throws IOException {
Filter filter = getFilter(filterTokens);
Key k = new Key();
for (String s: filterTokens) {
setKey(k,s);
assertTrue("Key for string " + s + " should be filter member", filter.membershipTest(k));
}
for (String s: notFilterTokens) {
setKey(k,s);
assertFalse("Key for string " + s + " should not be filter member", filter.membershipTest(k));