NoopScopeManagerImpl implements NoopScopeManager { @Override public Scope activate(Span span) { return NoopScope.INSTANCE; }  @Override Scope activate(Span span); @Override Span activeSpan();  }
@Test public void activeValueToleratesUseTest() { try{ final Scope active = NoopScopeManager.INSTANCE.activate(NoopSpanImpl.INSTANCE); assertNotNull(active); active.close(); } catch (final NullPointerException e) { fail("NoopScopeManagerImpl.active() should return a usable scope"); } }