logger.info("{}: running test: testSuspendTimeout", getClass().getSimpleName());
AsyncHttpClient c = new AsyncHttpClient();
try {
long t1 = System.currentTimeMillis();
Response r = c.prepareGet(urlTarget).setHeader(X_ATMOSPHERE_TRANSPORT, LONG_POLLING_TRANSPORT).execute().get(20, TimeUnit.SECONDS);
assertNotNull(r);
assertEquals(r.getStatusCode(), 200);
String resume = r.getResponseBody();
assertEquals(resume.trim(), "resume");
long current = System.currentTimeMillis() - t1;
assertTrue(current > 5000 && current < 15000);
} catch (Exception e) {
logger.error("test failed", e);