}
private HandlerMapping createHandlerMapping(MockHttpServletRequest request, Method requestMappingMethod) throws Exception {
System.out.println("createHandlerMapping"+request);
HandlerMapping requestMappingHandlerMapping = mock(HandlerMapping.class);
HandlerExecutionChain handlerExecutionChain = mock(HandlerExecutionChain.class);
HandlerMethod handlerMethod = mock(HandlerMethod.class);
when(handlerMethod.getMethod()).thenReturn(requestMappingMethod);
when(handlerExecutionChain.getHandler()).thenReturn(handlerMethod);
when(requestMappingHandlerMapping.getHandler(Matchers.argThat(new Matcher<HttpServletRequest>() {
@Override
public boolean matches(Object item) {
return ((HttpServletRequest) item).getRequestURI().equals("/test/requestName");
}