@Test
public void testBeginWhenNewGlobalTx() {

    // Setup
    when(globalTransaction.isNew()).thenReturn(true);
    // Run the test
    businessGlobalTransactionManagerImplUnderTest.begin(pipeline);
    // Verify the results
    verify(mockGlobalTransactionRepository).save(same(globalTransaction));
    verify(pipeline).accept(any());
}