### Question:
HttpRequestBuilder { public HttpRequestBuilder allowAllHosts() { return withHostnameVerifier((host, session) -> true); } HttpRequestBuilder(String clientName, URI uri); HttpRequestBuilder withMethod(String m); HttpRequestBuilder addHeader(String name, String value); HttpRequestBuilder userAgent(String agent); HttpRequestBuilder acceptJson(); HttpRequestBuilder accept(String type); HttpRequestBuilder acceptGzip(); HttpRequestBuilder acceptEncoding(String enc); HttpRequestBuilder withConnectTimeout(int timeout); HttpRequestBuilder withReadTimeout(int timeout); HttpRequestBuilder withJsonContent(String content); HttpRequestBuilder withContent(String type, String content); HttpRequestBuilder withContent(String type, byte[] content); HttpRequestBuilder compress(); HttpRequestBuilder compress(int level); HttpRequestBuilder withRetries(int n); HttpRequestBuilder withInitialRetryDelay(long delay); HttpRequestBuilder withHostnameVerifier(HostnameVerifier verifier); HttpRequestBuilder allowAllHosts(); HttpRequestBuilder withSSLSocketFactory(SSLSocketFactory factory); @SuppressWarnings("PMD.ExceptionAsFlowControl") HttpResponse send();  }### Answer:
@Test public void hostnameVerificationWithHTTP() throws IOException { Assertions.assertThrows(IllegalStateException.class, () -> new TestRequestBuilder(() -> OK).allowAllHosts()); }