@Test
public void shouldNotAddServiceContextNameIfNull() throws Exception {

    final InvocationContext invocationContext = mock(InvocationContext.class);
    when(serviceContextNameProvider.getServiceContextName()).thenReturn(null);
    when(invocationContext.proceed()).thenAnswer(invocationOnMock -> {
        assertThat(MDC.get(REQUEST_DATA), nullValue());
        return null;
    });
    mdcLoggerInterceptor.addRequestDataToMdc(invocationContext);
    assertThat(MDC.get(REQUEST_DATA), nullValue());
}