NoOpHttpTagStrategy extends HttpTagAndSpanNamingStrategy<REQ, RES> { @Override protected @Nullable String doGetInitialSpanName( @NotNull REQ request, @NotNull HttpTagAndSpanNamingAdapter<REQ, ?> adapter ) { return null; }  @SuppressWarnings("unchecked") static NoOpHttpTagStrategy<REQ, RES> getDefaultInstance();  }
@Test public void doGetInitialSpanName_returns_null_and_does_nothing_else() { String result = implSpy.doGetInitialSpanName(requestMock, adapterMock); assertThat(result).isNull(); verify(implSpy).doGetInitialSpanName(requestMock, adapterMock); verifyNoMoreInteractions(implSpy); verifyZeroInteractions(requestMock, adapterMock); }