### Question:
Client implements Closeable { public RequestHolder url(String url) { if (this.client == null) { this.client = buildClient(); } if (url.contains("?")) { throw new IllegalArgumentException("url should not contain query params; chain with setQueryParam() instead."); } this.bodyReaders.add(new JsonBodyReader()); this.bodyReaders.add(new XmlBodyReader()); this.bodyWriters.add(new JsonBodyWriter()); this.bodyWriters.add(new XmlBodyWriter()); return new RequestHolder(url); } Client();  Client(Builder builder); AsyncHttpClient getNativeClient(); Client setProxy(String host, int port); Client addBodyReader(BodyReader br); Client addBodyWriter(BodyWriter bw); Client setAuth(String username, String password, AuthScheme scheme); Client setOAuth2Builder(OAuth2Config.Builder builder); Client setOAuth2(String username, String password, String accessTokenEndpoint, String clientId, String clientSecret); RequestHolder url(String url); @Override void close();  }### Answer:
@Test(expectedExceptions = IllegalArgumentException.class) public void testCreateClientWithQueryParamsInUrl() { Client client = new Client(); client.url("http: }