public void testConnectReadRequestWriteJunkHangup()
throws Exception
{
try (FakeServer fakeServer = new FakeServer(scheme, host, 10, "THIS\nIS\nJUNK\n\n".getBytes(), false)) {
HttpClientConfig config = new HttpClientConfig();
config.setConnectTimeout(new Duration(5, SECONDS));
config.setReadTimeout(new Duration(5, SECONDS));
executeRequest(fakeServer, config);
}
}