* Confirm that there is one outstanding disco request to REMOTE_DOMAIN, and
* force its failure.
*/
private void failDiscoRequest() throws ExecutionException {
assertEquals(1, disco.pending.size());
PendingMockDisco v = disco.pending.get(REMOTE_DOMAIN);
assertEquals(REMOTE_DOMAIN, v.remoteDomain);
while (!v.callbacks.isEmpty()) {
v.callbacks.poll().onFailure("Forced failure");
}
}