@Test public void testGetBuilder() { MicrosoftRestEasyClient client = new MicrosoftRestEasyClient(); Invocation.Builder builder = client.getBuilder("http: ClientRequestHeaders headers = ((ClientInvocationBuilder) builder).getHeaders(); assertThat(headers.getHeader("Accept-Charset")).isEqualTo("UTF-8"); assertThat(headers.getHeader("Content-Type")).isEqualTo("application/x-www-form-urlencoded"); }
protected Invocation.Builder getBuilder(String uri, String encoding) { return new ResteasyClientBuilder() .build() .target(uri) .request() .header("Content-Type", MediaType.APPLICATION_FORM_URLENCODED) .header("Accept-Charset", encoding); }
MicrosoftRestEasyClient { protected Invocation.Builder getBuilder(String uri, String encoding) { return new ResteasyClientBuilder() .build() .target(uri) .request() .header("Content-Type", MediaType.APPLICATION_FORM_URLENCODED) .header("Accept-Charset", encoding); } }
MicrosoftRestEasyClient { protected Invocation.Builder getBuilder(String uri, String encoding) { return new ResteasyClientBuilder() .build() .target(uri) .request() .header("Content-Type", MediaType.APPLICATION_FORM_URLENCODED) .header("Accept-Charset", encoding); }  }
MicrosoftRestEasyClient { protected Invocation.Builder getBuilder(String uri, String encoding) { return new ResteasyClientBuilder() .build() .target(uri) .request() .header("Content-Type", MediaType.APPLICATION_FORM_URLENCODED) .header("Accept-Charset", encoding); }   }
MicrosoftRestEasyClient { protected Invocation.Builder getBuilder(String uri, String encoding) { return new ResteasyClientBuilder() .build() .target(uri) .request() .header("Content-Type", MediaType.APPLICATION_FORM_URLENCODED) .header("Accept-Charset", encoding); }    }