WingtipsSpringUtil { public static String getRequestMethodAsString(HttpMethod method) { if (method == null) { return "UNKNOWN_HTTP_METHOD"; } return method.name(); } protected  WingtipsSpringUtil(); static RestTemplate createTracingEnabledRestTemplate(); static RestTemplate createTracingEnabledRestTemplate(boolean surroundCallsWithSubspan); static RestTemplate createTracingEnabledRestTemplate(
        boolean surroundCallsWithSubspan,
        HttpTagAndSpanNamingStrategy<HttpRequest, ClientHttpResponse> tagAndNamingStrategy,
        HttpTagAndSpanNamingAdapter<HttpRequest, ClientHttpResponse> tagAndNamingAdapter
    ); static AsyncRestTemplate createTracingEnabledAsyncRestTemplate(); static AsyncRestTemplate createTracingEnabledAsyncRestTemplate(boolean surroundCallsWithSubspan); static AsyncRestTemplate createTracingEnabledAsyncRestTemplate(
        boolean surroundCallsWithSubspan,
        HttpTagAndSpanNamingStrategy<HttpRequest, ClientHttpResponse> tagAndNamingStrategy,
        HttpTagAndSpanNamingAdapter<HttpRequest, ClientHttpResponse> tagAndNamingAdapter
    ); static void propagateTracingHeaders(HttpMessage httpMessage, Span span); static String getRequestMethodAsString(HttpMethod method); static SuccessCallback<T> successCallbackWithTracing(SuccessCallback<T> successCallback); static SuccessCallback<T> successCallbackWithTracing(
        SuccessCallback<T> successCallback,
        Pair<Deque<Span>, Map<String, String>> threadInfoToLink
    ); static SuccessCallback<T> successCallbackWithTracing(
        SuccessCallback<T> successCallback,
        Deque<Span> spanStackToLink,
        Map<String, String> mdcContextMapToLink
    ); static FailureCallback failureCallbackWithTracing(FailureCallback failureCallback); static FailureCallback failureCallbackWithTracing(FailureCallback failureCallback,
                                                             Pair<Deque<Span>, Map<String, String>> threadInfoToLink); static FailureCallback failureCallbackWithTracing(FailureCallback failureCallback,
                                                             Deque<Span> spanStackToLink,
                                                             Map<String, String> mdcContextMapToLink); static ListenableFutureCallback<T> listenableFutureCallbackWithTracing(
        ListenableFutureCallback<T> listenableFutureCallback
    ); static ListenableFutureCallback<T> listenableFutureCallbackWithTracing(
        ListenableFutureCallback<T> listenableFutureCallback,
        Pair<Deque<Span>, Map<String, String>> threadInfoToLink
    ); static ListenableFutureCallback<T> listenableFutureCallbackWithTracing(
        ListenableFutureCallback<T> listenableFutureCallback,
        Deque<Span> spanStackToLink,
        Map<String, String> mdcContextMapToLink
    );  }
@DataProvider(value = { "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS", "TRACE", "null" }) @Test public void getRequestMethodAsString_works_as_expected( HttpMethod method ) { String expectedResult = (method == null) ? "UNKNOWN_HTTP_METHOD" : method.name(); String result = WingtipsSpringUtil.getRequestMethodAsString(method); assertThat(result).isEqualTo(expectedResult); }