@BeforeMethod
public void setup()
throws Exception
{
balancer = new HttpServiceBalancerImpl("test collector balancer", new TestingReportCollectionFactory().createReportCollection(HttpServiceBalancerStats.class));
httpClient = new BalancingHttpClient(balancer,
new JettyHttpClient(new HttpClientConfig().setConnectTimeout(new Duration(10, SECONDS))),
new BalancingHttpClientConfig());
servlet = new DummyServlet();