InnerGlobalTxStepVisitor extends StepGlobalTxVisitor { BubbleMessage buildBubbleMessgae(GlobalTransaction globalTransaction, String FLTX, String PGTX){ return BubbleMessage.builder() .GLTX(globalTransaction.getId()) .trace(globalTransaction.getTraceId()) .FLTX(FLTX) .PGTX(PGTX) .build(); } InnerGlobalTxStepVisitor(BubbleCache bubbleCache, ApplicationEventPublisher applicationEventPublisher,
                                    VisitorProvision provision, CommandOrchestrator commandOrchestrator, TransactionUtilities utilities); static InnerGlobalTxStepVisitorBuilder builder(); @Override void visit(GlobalTransactionStepDefinition<? extends BaseGlobalTransactionEvent> transactionPipeline);  }
@Test public void testBuildBubbleMessgae() { final GlobalTransaction globalTransaction = mock(GlobalTransaction.class); final String gtx = "gtx"; final String traceId = "trace"; final String FLTX = "FLTX"; final String PGTX = "PGTX"; when(globalTransaction.getId()).thenReturn(gtx); when(globalTransaction.getTraceId()).thenReturn(traceId); final BubbleMessage result = innerGlobalTxStepVisitorUnderTest.buildBubbleMessgae(globalTransaction, FLTX, PGTX); assertEquals(result.getGLTX(), gtx); assertEquals(result.getTraceId(), traceId); assertEquals(result.getFLTX(), FLTX); assertEquals(result.getPGTX(), PGTX); }