@Test
public void testUseRequestAfterComplete() {
server.requestHandler(noOpHandler());
server.listen(onSuccess(server -> {
HttpClientRequest req = client.request(HttpMethod.POST, DEFAULT_HTTP_PORT, DEFAULT_HTTP_HOST, DEFAULT_TEST_URI, noOpHandler());
req.end();
Buffer buff = Buffer.buffer();
assertIllegalStateException(() -> req.end());
assertIllegalStateException(() -> req.continueHandler(noOpHandler()));
assertIllegalStateException(() -> req.drainHandler(noOpHandler()));
assertIllegalStateException(() -> req.end("foo"));
assertIllegalStateException(() -> req.end(buff));
assertIllegalStateException(() -> req.end("foo", "UTF-8"));
assertIllegalStateException(() -> req.exceptionHandler(noOpHandler()));
assertIllegalStateException(() -> req.sendHead());
assertIllegalStateException(() -> req.setChunked(false));
assertIllegalStateException(() -> req.setWriteQueueMaxSize(123));
assertIllegalStateException(() -> req.write(buff));
assertIllegalStateException(() -> req.write("foo"));
assertIllegalStateException(() -> req.write("foo", "UTF-8"));
assertIllegalStateException(() -> req.write(buff));
assertIllegalStateException(() -> req.writeQueueFull());
testComplete();
}));
await();