@Test
public void interceptTransactionIdInHeaderIfContextPresent() throws IOException {

  omegaContext.setGlobalTxId(globalTxId);
  omegaContext.setLocalTxId(localTxId);
  HttpHeaders headers = new HttpHeaders();
  when(request.getHeaders()).thenReturn(headers);
  when(execution.execute(request, null)).thenReturn(response);
  clientHttpRequestInterceptor.intercept(request, null, execution);
  assertThat(request.getHeaders().get(OmegaContext.GLOBAL_TX_ID_KEY), contains(globalTxId));
  assertThat(request.getHeaders().get(OmegaContext.LOCAL_TX_ID_KEY), contains(localTxId));
}