@Test (timeout=500)
public void testMicroBenchmark() {

    IdGenerator idgen = new IdGenerator(0L);
    int numIterations = 10000;
    long start = System.currentTimeMillis();
    for (int i = 0; i < numIterations; ++i) {
        idgen.getNextId();
    }
    long duration = System.currentTimeMillis() - start;
    log.info("Microbenchmark: iterations = " + numIterations + ", time = " + duration + "ms");
}