@Test(expectedExceptions = ServiceUnavailableException.class, expectedExceptionsMessageRegExp = ".*has no instances.*")
public void testFutureFailsWhenServiceUnavailable()
        throws InterruptedException
{

    client = newEventClient(ImmutableSet.of());
    try {
        client.post(new FixedDummyEventClass("host", new DateTime(), UUID.randomUUID(), 1, "foo")).get();
    }
    catch (ExecutionException e) {
        throwIfUnchecked(e.getCause());
        throw new RuntimeException(e.getCause());
    }
}