SERVER_PORT = getPorts().get(0);
httpClient = new HttpClient();
httpClient.setConnectorType(HttpClient.CONNECTOR_SELECT_CHANNEL);
httpClient.start();
bayeuxClient = new BayeuxClient(httpClient, new Address("localhost", SERVER_PORT), "/ajax/cometd");
// need to start the client before you can add subscriptions
bayeuxClient.start();
assertTrue("httpClient is not running", httpClient.isRunning());
assertTrue("bayeuxClient is not running", bayeuxClient.isRunning());