@Test
public void testTimeout() throws Exception {

    // Make the server hang forever; never count down
    final CountDownLatch callLatch = new CountDownLatch(1);
    final FortuneServer server = new FortuneServerImpl(callLatch, null);
    final VContext serverContext = V.withNewServer(ctx, "", server, null);
    final FortuneClient client = FortuneClientFactory.getFortuneClient(
            "/" + V23TestUtil.getServerEndpoint(serverContext));
    final VContext timeout = ctx.withTimeout(Duration.millis(100));
    try {
        sync(client.get(timeout));
    } catch (TimeoutException | CanceledException e) {
        // OK
    }
}