private static void assertMirrorReady(Mirror slobrok)
            throws InterruptedException, TimeoutException
    {
        for (int i = 0; i < TIMEOUT_MILLIS / 10; ++i) {
            if (slobrok.ready()) {
                return;
            }
            Thread.sleep(10);
        }
        throw new TimeoutException();
    }
Ensures that the given number of select passes on the given frame produces an expected list of recipients.

@param frame      The frame to select on.
@param numSelects The number of selects to perform.
@param expected   The list of expected recipients.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/test/PolicyTestCase.java