@Test
public void interceptTransactionIdInHeaderIfContextPresent() throws Exception {

  omegaContext.setGlobalTxId(globalTxId);
  omegaContext.setLocalTxId(localTxId);
  Map<String, String> context = new HashMap<>();
  when(invocation.getContext()).thenReturn(context);
  handler.handle(invocation, asyncResponse);
  assertThat(invocation.getContext().get(OmegaContext.GLOBAL_TX_ID_KEY), is(globalTxId));
  assertThat(invocation.getContext().get(OmegaContext.LOCAL_TX_ID_KEY), is(localTxId));
}