}
@Test
public void shouldNotAcceptCustomizedAccepts() throws Exception {
InterceptorWithCustomizedAccepts interceptor = new InterceptorWithCustomizedAccepts();
AspectStyleInterceptorHandler aspectHandler = newAspectStyleInterceptorHandler(
InterceptorWithCustomizedAccepts.class, interceptor,withAnnotationAcceptor);
when(withAnnotationAcceptor.validate(Mockito.same(controllerMethod),
Mockito.any(ControllerInstance.class))).thenReturn(false);
aspectHandler.execute(stack, controllerMethod, new MethodLevelAcceptsController());
assertFalse(interceptor.isBeforeCalled());
assertFalse(interceptor.isInterceptCalled());
assertFalse(interceptor.isAfterCalled());
}