@Test
public void canHandleUrlIfNonRootContextButPlainRequest() {

	when(request.getRequestURI()).thenReturn("/custom_context/");
	when(request.getContextPath()).thenReturn("/custom_context");
	when(request.getMethod()).thenReturn("GET");
	when(router.parse("/", HttpMethod.GET, webRequest)).thenReturn(method);
	ResourceMethod resource = translator.translate(info);
	assertThat(resource, is(equalTo(method)));
}