@Test
public void shouldNotInvokeInterceptorsMethodIfInterceptorDoesntAcceptsResource() throws InterceptionException, IOException {

	final Object instance = new Object();
when(container.instanceFor(Interceptor.class)).thenReturn(interceptor);
when(interceptor.accepts(method)).thenReturn(false);
	ToInstantiateInterceptorHandler handler = new ToInstantiateInterceptorHandler(container, Interceptor.class);
	handler.execute(stack, method, instance);
	
verify(interceptor, never()).intercept(stack, method, instance);
verify(stack).next(method, instance);
}