DefaultInterceptorContextProvider implements InterceptorContextProvider { @Override public InterceptorContext interceptorContextWithInput(final JsonEnvelope inputEnvelope) { return new DefaultInterceptorContext(contextPayloadWith(inputEnvelope), contextPayloadWithNoEnvelope()); }  @Override InterceptorContext interceptorContextWithInput(final JsonEnvelope inputEnvelope);  }
@Test public void shouldProvideInterceptorContext() { final DefaultInterceptorContextProvider provider = new DefaultInterceptorContextProvider(); final JsonEnvelope jsonEnvelope = new DefaultJsonEnvelopeProvider().envelopeFrom(metadata, payload); InterceptorContext interceptorContext = provider.interceptorContextWithInput(jsonEnvelope); assertThat(interceptorContext, instanceOf(DefaultInterceptorContext.class)); }