@Test(groups = { "standalone", "default_provider", "async" })
public void asyncDoPostDelayCancelTest() throws Exception {
AsyncHttpClient client = getAsyncHttpClient(null);
try {
FluentCaseInsensitiveStringsMap h = new FluentCaseInsensitiveStringsMap();
h.add("Content-Type", "application/x-www-form-urlencoded");
h.add("LockThread", "true");
StringBuilder sb = new StringBuilder();
sb.append("LockThread=true");
Future<Response> future = client.preparePost(getTargetUrl()).setHeaders(h).setBody(sb.toString()).execute(new AsyncCompletionHandlerAdapter() {
@Override