final CountingMatcherEditorListener counter = new CountingMatcherEditorListener();
weakMatcherEditor.addMatcherEditorListener(counter);
counter.assertCounterState(0, 0, 0, 0, 0);
textMatcherEditor.setFilterText(new String[] {"booblah"});
counter.assertCounterState(0, 0, 0, 1, 0);
weakMatcherEditor.removeMatcherEditorListener(counter);
textMatcherEditor.setFilterText(new String[] {"bibbety"});
counter.assertCounterState(0, 0, 0, 1, 0);
}