### Question:
GlobFilter implements PostDiscoveryFilter { Optional<Pattern> findMatchingPattern(String testName) { return patterns.stream() .filter(pattern -> pattern.matcher(testName).matches()) .findAny(); } GlobFilter(Set<String> globPatterns, Dispatcher eventDispatcher); static Optional<GlobFilter> create(Set<String> globPatterns, Dispatcher eventDispatcher); @Override FilterResult apply(TestDescriptor object);  }### Answer:
@Test public void shouldMatchWildcardPattern() { GlobFilter filter = newGlobFilter("basic.*"); String testName = "basic.FooTest"; assertThat(testName, filter.findMatchingPattern(testName).isPresent(), is(true)); testName = "basic.FooTest#someTest()"; assertThat(testName, filter.findMatchingPattern(testName).isPresent(), is(true)); testName = "failure.AssumptionsTest"; assertThat(testName, filter.findMatchingPattern(testName).isPresent(), is(false)); }