@Test(timeout=30000)
    public void checkRange() throws Exception {
        // Run a few thousand iterations and check for values <= 0
        for (int i=0; i<ITERATIONS; i++) {
            RequestIDSequence seq = new RequestIDSequence();
            long val = seq.getNextRID();
            if (val <= 0) {
                fail("Initial RID repeated value was not a positive integer: "
                        + val);
            }
            if (val > MAX_ALLOWED) {
                fail("Initial RID was greater than the allowed maximum "
                        + "(actual=" + val + ", max=" + MAX_ALLOWED + ")");
            }
            if (val + MAX_INCREMENTS > MAX_ALLOWED) {
                fail ("Initial RID did not leave reasonable room for "
                        + "incrementing on subsequent messages "
                        + "(" + val + " + " + MAX_INCREMENTS + " >= "
                        + MAX_ALLOWED + ")");
            }
        }
    }