@Test(expected = BusinessGlobalTransactionNotFoundException.class)
public void testCommitWhenGlobalTxNotFound() {

    // Setup
    when(mockBusinessGlobalTransactionService.retrieveGlobalTransaction(Optional.of(requestGlobalTransaction))).thenReturn(Optional.empty());
    // Run the test
    businessGlobalTransactionManagerImplUnderTest.commit(pipeline);
    // Verify the results
    verify(globalTransaction, never()).setStatus(any());
    verify(mockGlobalTransactionRepository, never()).save(any(GlobalTransaction.class));
    verify(pipeline, never()).accept(any());
}