@Test
public void testAddEventWithCallback() throws Exception {

    setMockResponse(201, POST_EVENT_SUCCESS);
    final CountDownLatch latch = new CountDownLatch(1);
    client.addEvent(null, TEST_COLLECTION, TEST_EVENTS.get(0), null, new LatchKeenCallback(latch));
    latch.await(2, TimeUnit.SECONDS);
}