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