HttpTagAndSpanNamingAdapter { public @Nullable String getSpanNamePrefix(@Nullable REQ request) { return null; }  @Nullable String getErrorResponseTagValue(@Nullable RES response); abstract @Nullable String getRequestUrl(@Nullable REQ request); abstract @Nullable String getRequestPath(@Nullable REQ request); abstract @Nullable String getRequestUriPathTemplate(@Nullable REQ request, @Nullable RES response); abstract @Nullable Integer getResponseHttpStatus(@Nullable RES response); abstract @Nullable String getRequestHttpMethod(@Nullable REQ request); abstract @Nullable String getHeaderSingleValue(@Nullable REQ request, @NotNull String headerKey); abstract @Nullable List<String> getHeaderMultipleValue(@Nullable REQ request, @NotNull String headerKey); @Nullable String getSpanNamePrefix(@Nullable REQ request); @Nullable String getInitialSpanName(@Nullable REQ request); @Nullable String getFinalSpanName(@Nullable REQ request, @Nullable RES response); abstract @Nullable String getSpanHandlerTagValue(@Nullable REQ request, @Nullable RES response);  }
@DataProvider(value = { "true", "false" }) @Test public void getSpanNamePrefix_returns_null(boolean passNullRequestObj) { Object requestObj = (passNullRequestObj) ? null : new Object(); String result = implSpy.getSpanNamePrefix(requestObj); assertThat(result).isNull(); }