### Question:
ObjectProviderInterceptor implements Interceptor { @Override public Object intercept(Invocation invocation) throws Throwable { return provider.getObject(); } ObjectProviderInterceptor(ObjectProvider<?> provider); @Override Object intercept(Invocation invocation);  }### Answer:
@Test public void testIntercept() throws Throwable { ObjectProviderInterceptor interceptor = new ObjectProviderInterceptor(ObjectProviderUtils.constant("Hello!")); assertEquals("Hello!", interceptor.intercept(null)); }