@Test
public void testOriginalCallerId() throws Exception {

    when(request.getHeader(CallMetadataHeaders.CALLER_ID_HEADER)).thenReturn(MY_ORIGINAL_CALLER);
    interceptor.preHandle(request, response, new Object());
    CallMetadata callMetadata = expectCallMetadataAuthentication();
    assertThat(callMetadata.getCallers()).hasSize(2);
    assertThat(callMetadata.getCallers().get(0).getId()).isEqualTo(MY_ORIGINAL_CALLER);
    assertThat(callMetadata.getCallers().get(1).getId()).isEqualTo(MY_DIRECT_CALLER);
    assertThat(callMetadata.getCallers().get(1).getCallerType()).isEqualTo(CallerType.Application);
}