@Test
public void testReceivesEvent()
        throws ExecutionException, InterruptedException, IOException
{

    client = newEventClient(ImmutableSet.of(baseUri));
    client.post(TestingUtils.getEvents()).get();
    assertEquals(servlet.lastPath, "/v2/event");
    assertEquals(new ObjectMapper().readValue(servlet.lastBody, Object.class), TestingUtils.getExpectedJson(), "JSON encoding " + servlet.lastBody);
}