when(request.getRequestURI()).thenReturn("/custom_context/products/1");
when(request.getContextPath()).thenReturn("/custom_context");
when(request.getMethod()).thenReturn("GET");
when(router.parse("/products/1", HttpMethod.GET, webRequest)).thenReturn(method);
ControllerMethod controller = translator.translate(webRequest);
assertThat(controller, is(equalTo(method)));
}