### Question:
UrlFilterAnalyzer { String getApplyAsContainingFilter(String filter) { Matcher matcher = applyAsContainingPattern.matcher(filter); if (matcher.matches()) { return matcher.group(1); } return null; } UrlFilterAnalyzer();   }### Answer:
@Test public void getApplyAsContainingFilter() { assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("/test/get"), is(nullValue())); assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("*/test/get"), is(nullValue())); assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("*/test/get*"), is("/test/get")); assertThat(urlFilterAnalyzer.getApplyAsContainingFilter("*/test/*get"), is("/test/")); }