### Question:
OkHttpRestfulClient implements IHttpClient { public static StringBuilder newHeaderBuilder(StringBuilder baseUrl) { StringBuilder sb = new StringBuilder(baseUrl); if (endsWith(baseUrl, '/')) { deleteLastCharacter(sb); } return sb; } OkHttpRestfulClient(Call.Factory theClient,
                               StringBuilder theUrl,
                               Map<String, List<String>> theIfNoneExistParams,
                               String theIfNoneExistString,
                               RequestTypeEnum theRequestType,
                               List<Header> theHeaders); @Override IHttpRequest createByteRequest(FhirContext theContext, String theContents, String theContentType, EncodingEnum theEncoding); @Override IHttpRequest createParamRequest(FhirContext theContext, Map<String, List<String>> theParams, EncodingEnum theEncoding); @Override IHttpRequest createBinaryRequest(FhirContext theContext, IBaseBinary theBinary); @Override IHttpRequest createGetRequest(FhirContext theContext, EncodingEnum theEncoding); static StringBuilder newHeaderBuilder(StringBuilder baseUrl);  }### Answer:
@Test public void testNewHeaderBuilder_urlHasTrailingSlash_shouldTrim() { StringBuilder headerBuilder = OkHttpRestfulClient.newHeaderBuilder(new StringBuilder("http: assertThat(headerBuilder.toString(), equalTo("http: }
@Test public void testNewHeaderBuilder_urlHasNoTrailingSlash_shouldNotTrimLastCharacter() { StringBuilder headerBuilder = OkHttpRestfulClient.newHeaderBuilder(new StringBuilder("http: assertThat(headerBuilder.toString(), equalTo("http: }