@Test
public void testFindGlobalTransactionWhenGlobalTxNotExist() {

    // Setup
    final String id = "id";
    when(mockGlobalTransactionRepository.findOne(id)).thenReturn(null);
    // Run the test
    final Optional<GlobalTransaction> result = businessGlobalTransactionServiceImplUnderTest.findGlobalTransaction(id);
    // Verify the results
    assertEquals(Optional.empty(), result);
}