@Test(timeout=20000)
    public void checkForIDRepeats() throws Exception {
        long repeats = 0;
        // Run a few thousand iterations and check for repeats
        Set<Long> observed = new HashSet<Long>(ITERATIONS * 2);
        for (int i=0; i<ITERATIONS; i++) {
            RequestIDSequence seq = new RequestIDSequence();
            Long id = Long.valueOf(seq.getNextRID());
            if (!observed.add(id)) {
                LOG.info("Found a repeat on iteration #" + i + ": " + id);
                repeats++;
            }
        }
        LOG.info("Repeated initial RID " + repeats + " time(s) in "
                + ITERATIONS + " iterations");
        if (repeats > 0) {
            fail("Initial RID repeated " + repeats + " time(s) in "
                    + ITERATIONS + " iterations");
        }
    }