@@ -0,0 +1,1285 @@
+package io.advantageous.qbit.vertx.bugs;%0A%0Aimport io.advantageous.boon.core.Sys;%0Aimport io.advantageous.qbit.http.client.HttpClient;%0Aimport io.advantageous.qbit.http.client.HttpClientBuilder;%0Aimport io.advantageous.qbit.http.request.HttpRequestBuilder;%0Aimport org.junit.Test;%0A%0Aimport java.util.concurrent.atomic.AtomicInteger;%0A%0Aimport static io.advantageous.boon.core.IO.puts;%0Aimport static org.junit.Assert.assertEquals;%0A%0Apublic class Bug660 %7B%0A%0A    @Test%0A    public void test() throws Exception %7B%0A        final HttpClient httpClient = HttpClientBuilder.httpClientBuilder()%0A                .setHost(%22localhost%22)%0A                .setPort(9999)%0A                .buildAndStart();%0A%0A        AtomicInteger codeRef = new AtomicInteger();%0A%0A%0A        httpClient.sendHttpRequest(HttpRequestBuilder%0A                .httpRequestBuilder()%0A                .setJsonBodyForPost(%22%5C%22hi mob%5C%22%22)%0A                .setResponse((code, contentType, body) -%3E %7B%0A                    puts(code, contentType, body);%0A                    codeRef.set(code);%0A                %7D)%0A                .build());%0A%0A        for (int index = 0; index %3C 100; index++) %7B%0A            if (codeRef.get()!=0) %7B%0A                break;%0A            %7D%0A            Sys.sleep(1);%0A        %7D%0A%0A        assertEquals(503, codeRef.get());%0A%0A    %7D%0A%0A%7D%0A

test case to test bug fix.