* @throws InterruptedException in case the waiting for all requests to complete was interrupted.
*/
@Test
public void testAsyncServlet() throws InterruptedException {
final WebTarget resourceTarget = target("async");
resourceTarget.register(new LoggingFilter());
final String expectedResponse = AsyncServletResource.HELLO_ASYNC_WORLD;
final int MAX_MESSAGES = 50;
final int LATCH_WAIT_TIMEOUT = 10 * getAsyncTimeoutMultiplier();
final boolean debugMode = false;