});
// Wait for a response, and assert that is a complete failure. :-)
responseLatch.await(TIMEOUT_SECONDS, TimeUnit.SECONDS);
assertEquals(Arrays.asList((ProtocolWaveletUpdate) null), responses);
assertTrue(controller.failed());
assertEquals(ERROR_TEXT, controller.errorText());
}
/**
* Tests cancelling a streaming RPC. This is achieved by waiting for the first