public boolean waitSlobrok(String pattern, int cnt) {
        return waitState(new SlobrokState().add(pattern, cnt));
    }
Wait for some pattern to resolve to some number of services.

@param pattern pattern to lookup in slobrok
@param cnt     number of services it must resolve to
@return Whether or not the required state was reached
messagebus/src/main/java/com/yahoo/messagebus/network/rpc/test/TestServer.java