@Test
public void testStartGtxSpanWhenSpanNotNullAndHasGtx() {

    // Setup
    final String name = "name";
    final String gtx = "gtx";
    final String traceId = "4e30f7340b3fb631";
    final Span span = mock(Span.class, RETURNS_DEEP_STUBS);
    final Span newGlobalSpan = mock(Span.class);
    when(span.tags().containsKey("kermoss.gtx")).thenReturn(true);
    // Run the test
    final Span result = kermossTracerUnderTest.startGtxSpan(name, gtx, traceId, span);
    // Verify the results
    verify(newGlobalSpan, never()).tag(anyString(), anyString());
    verify(mockPublisher, never()).publishEvent(any(GtxSpanStarted.class));
    assertEquals(result, span);
}