this.hsClient.shutdown();
assertFalse(started.get());
assertFalse(stopped.get());
assertEquals(0, connectedCount.get());
HSClientBuilder builder = new HSClientBuilderImpl();
builder.setServerAddress(this.hostName, 9999);
builder.addStateListeners(listener);
builder.setConnectionPoolSize(10);
this.hsClient = builder.build();
assertTrue(started.get());
assertFalse(stopped.get());
assertEquals(10, connectedCount.get());