@Test
public void filter() {

    Set<String> rules = new HashSet<>();
    rules.add("foo");
    rules.add("bar");
    rules.add("wildcard");
    Set<String> result = ruleFilter.match(rules, "foo, w?ldc*d");
    assertThat(result).containsOnly("foo", "wildcard");
}