### Question:
InterceptorUtils { public static Interceptor throwing(Exception e) { return new ThrowingInterceptor(ObjectProviderUtils.constant(e)); } private  InterceptorUtils(); static Interceptor constant(Object value); static Interceptor provider(ObjectProvider<?> provider); static Interceptor throwing(Exception e); static Interceptor throwing(ObjectProvider<? extends Exception> provider); static Interceptor invoking(Invoker invoker);  }### Answer:
@Test(expected = RuntimeException.class) public void testThrowingExceptionObject() throws Throwable { Interceptor interceptor = InterceptorUtils.throwing(new RuntimeException("Oops!")); Invocation invocation = mockInvocation(Echo.class, "echoBack", String.class).withArguments("World!").build(); interceptor.intercept(invocation); }