@Test
public void testMapToWhenBubbleMessageNotExist() {

    // Setup
    final BaseGlobalTransactionEvent event = mock(BaseGlobalTransactionEvent.class);
    final WorkerMeta meta = mock(WorkerMeta.class);
    final String txName = "txname";
    final GlobalTransactionStepDefinition<BaseGlobalTransactionEvent> pipeline = GlobalTransactionStepDefinition.builder()
            .in(event)
            .meta(meta)
            .build();
    when(meta.getTransactionName()).thenReturn(txName);
    when(mockTransactionUtilities.getBubleMessage(pipeline)).thenReturn(Optional.empty());
    // Run the test
    final RequestGlobalTransaction result = globalTransactionMapperUnderTest.mapTo(pipeline).get();
    // Verify the results
    assertEquals(result.getName(), txName);
    assertEquals(result.getEventRequestor(), event);
    assertEquals(result.getGTX(), null);
    assertEquals(result.getParent(), null);
    assertEquals(result.getTraceId(), null);
    assertEquals(result.getCommandRequestor(), null);
}