@Test
public void testStartGtxSpanWhenGlobalTransactionHasNoParent() {

    // Setup
    final GlobalTransaction gt = mock(GlobalTransaction.class);
    final Span span = mock(Span.class);
    ArgumentCaptor<String> name = ArgumentCaptor.forClass(String.class);
    doReturn(span).when(kermossTracerUnderTest).startGtxSpan(anyString(), anyString(), anyString(), any(Span.class));
    when(gt.getParent()).thenReturn(null);
    // Run the test
    kermossTracerUnderTest.startGtxSpan(gt, span);
    // Verify the results
    verify(kermossTracerUnderTest).startGtxSpan(name.capture(), anyString(), anyString(), any(Span.class));
    assertEquals(name.getValue(),"In the parent globalTransaction");
}