@Test
public void testNonNullSpanContext() {

    val testChildSpanContext = noOpsTracer.buildSpan("testChildOperationName").asChildOf(testSpanContext);
    when(tracer.buildSpan("testChildOperationName")).thenReturn(testChildSpanContext);
    val resultChildSpan = utilUnderTest.startSpan("testChildOperationName", testSpanContext);
    Assert.assertEquals(testSpanContext.toTraceId(), resultChildSpan.context().toTraceId());
    Assert.assertEquals(testSpanContext.toSpanId(), resultChildSpan.context().getParentId().toString());
}