public void onFilterResult(Object instance, Object[] projection, Comparable[] sortProjection) {
matchCount[0]++;
}
});
ObjectFilter objectFilter = matcher.getObjectFilter(filterSubscription);
matcher.match(person);
assertEquals(1, matchCount[0]);
ObjectFilter.FilterResult result = objectFilter.filter(person);
assertTrue(result.getInstance() == person);
assertEquals(1, matchCount[0]); // check that the object filter did not also mistakenly trigger a match in the parent matcher
}