@Test
public void testServerFails()
        throws InterruptedException
{

    responseCode = 503;
    client = newEventClient(ImmutableSet.of(baseUri));
    ListenableFuture<Void> future = client.post(TestingUtils.getEvents());
    try {
        future.get();
        fail("expected exception");
    }
    catch (ExecutionException e) {
        assertInstanceOf(e.getCause(), UnexpectedResponseException.class);
    }
    assertEquals(servlet.lastPath, "/v2/event");
}