void () { TypoTolerantMatcher matcher = new TypoTolerantMatcher("*", NameUtil.MatchingCaseSensitivity.NONE, ""); String[] data = new String[]{"foo", "bar", "buzz"}; List<String> matched = ContainerUtil.filter(data, matcher::matches); List<String> expected = List.of("foo", "bar", "buzz"); assertEquals(expected, matched); }