    @Test
    public void testStatusCode() throws InterruptedException, ExecutionException {

        // get
        HttpGet request = new HttpGet("http://localhost:4242");
        try {
            response = httpAsyncClient.execute(request, null);
            assertTrue(response.getStatusLine().getStatusCode() == 200);
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (ExecutionException e) {
            e.printStackTrace();
        }

        //put
        HttpEntityEnclosingRequestBase requestTmp = null;
        requestTmp = new HttpPost("http://localhost:4242/api/put");
        response = httpAsyncClient.execute(request, null);
        assertTrue(response.getStatusLine().getStatusCode() == 200);

        requestTmp = new HttpPost("http://localhost:4242/api/put?details=true");
        response = httpAsyncClient.execute(request, null);
        assertTrue(response.getStatusLine().getStatusCode() == 200);

        requestTmp = new HttpPost("http://localhost:4242/api/put?sync_timeout=60000&sync=true");
        response = httpAsyncClient.execute(request, null);
        assertTrue(response.getStatusLine().getStatusCode() == 200);
        
        //version
        requestTmp = new HttpPost("http://localhost:4242/api/version");
        response = httpAsyncClient.execute(requestTmp, null);
        assertTrue(response.getStatusLine().getStatusCode() == 200);

    }