assertTrue(matcher.matches(request));
}
@Test
public void queryStringIsMatcherCorrectly() throws Exception {
RegexRequestMatcher matcher = new RegexRequestMatcher(".*\\?x=y", "GET");
MockHttpServletRequest request = new MockHttpServletRequest("GET", "/any/path?x=y");
request.setServletPath("/any");
request.setPathInfo("/path");
request.setQueryString("x=y");
assertTrue(matcher.matches(request));
}