AsyncHttpClientConfig.Builder b = new AsyncHttpClientConfig.Builder();
b.addRequestFilter(new ThrottleRequestFilter(0, 1000));
AsyncHttpClient c = getAsyncHttpClient(b.build());
try {
c.preparePost(getTargetUrl()).execute().get();
fail("Should have timed out");
} catch (ExecutionException ex) {
assertTrue(ex.getCause() instanceof FilterException);
} finally {
c.close();