use of uk.gov.justice.services.messaging.spi.DefaultJsonEnvelopeProvider in project microservice_framework by CJSCommonPlatform.
the class DefaultInterceptorContextProviderTest method shouldProvideInterceptorContext.
@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));
}
Aggregations