}
@Test
public void shouldHandle405() throws Exception {
EnumSet<HttpMethod> allowedMethods = EnumSet.of(HttpMethod.GET);
when(translator.translate(webRequest)).thenThrow(new MethodNotAllowedException(allowedMethods, POST.toString()));
observer.handle(requestStarted);
verify(methodNotAllowedHandler).deny(webRequest, webResponse, allowedMethods);
verify(interceptorStack, never()).start();
}