Trace { public static SpanContextHandler getSpanContextHandler() { return service.getSpanContextHandler(); }  static void init(TraceService traceService); static Tracer getTracer(); static SpanContextHandler getSpanContextHandler(); static SpanContextFactory getSpanContextFactory();  }
@Test public void testGetSpanContextHandler_No() { SpanContextHandler handler = Trace.getSpanContextHandler(); assertInvalid(handler.current()); SpanContextHandle handle = handler.attach(handler.current()); assertInvalid(handler.current()); handle.detach(); assertInvalid(handler.current()); }