### Question:
DefaultWildcardStreamLocator implements WildcardStreamLocator, WildcardExpanderHandlerAware { public boolean hasWildcard(final String uri) { return uri.matches(WILDCARD_REGEX); }  static String stripQueryPath(final String path); boolean hasWildcard(final String uri); InputStream locateStream(final String uri, final File folder); void setWildcardExpanderHandler(final Function<Collection<File>, Void> handler); static final String RECURSIVE_WILDCARD; }### Answer:
@Test public void testNoWildcardPresent1() { assertFalse(locator.hasWildcard("test/resource.css")); }
@Test public void testNoWildcardPresent2() { assertFalse(locator.hasWildcard("test/resource[a].css")); }
@Test public void testWildcardPresent1() { assertTrue(locator.hasWildcard("test/*.css")); }
@Test public void testWildcardPresent2() { assertTrue(locator.hasWildcard("test/test.?ss")); }
@Test public void testWildcardPresent3() { assertTrue(locator.hasWildcard("test/**.???")); }
@Test public void testWildcardPresent4() { assertFalse(locator.hasWildcard("http: }