RiemannClient client = null;
try {
client = RiemannClient.tcp(server.start());
client.connect();
for (int i = 0; i < 10; i++) {
final Event e = Util.createEvent();
assertEquals(true, client.sendEventsWithAck(e));
assertEquals(e, Util.soleEvent(server.received.poll()));
}
} finally {
if (client != null) {