@Test
public void interceptTransactionIdInHeaderIfContextPresent() {

  omegaContext.setGlobalTxId(globalTxId);
  omegaContext.setLocalTxId(localTxId);
  Map<String, String> attachMents = new HashMap<>();
  when(invocation.getAttachments()).thenReturn(attachMents);
  filter.invoke(null, invocation);
  assertThat(invocation.getAttachments().get(OmegaContext.GLOBAL_TX_ID_KEY), is(globalTxId));
  assertThat(invocation.getAttachments().get(OmegaContext.LOCAL_TX_ID_KEY), is(localTxId));
}