observer = new RequestHandlerObserver(translator, notFoundHandler, methodNotAllowedHandler, controllerFoundEvent, requestSucceededEvent, interceptorStack, invalidInputHandler);
}
@Test
public void shouldHandle404() throws Exception {
when(translator.translate(webRequest)).thenThrow(new ControllerNotFoundException());
observer.handle(requestStarted);
verify(notFoundHandler).couldntFind(chain, webRequest, webResponse);
verify(interceptorStack, never()).start();
}