@Test
public void testFindGlobalTransaction() {

    // Setup
    final String GTX = "GTX";
    final GlobalTransaction globalTransaction = mock(GlobalTransaction.class);
    when(mockGlobalTransactionRepository.findById(anyString())).thenReturn(Optional.of(globalTransaction));
    // Run the test
    final Optional<GlobalTransaction> result = businessLocalTransactionManagerImplUnderTest.findGlobalTransaction(GTX);
    // Verify the results
    assertEquals(Optional.of(globalTransaction), result);
}