@Test (timeout = 1000)
public void testPerformance() throws Exception
{

    SlotMapper mapper = new SlotMapper();
    long start = System.currentTimeMillis();
    // Do 1M reps.
    int reps = 1000000;
    for (int i = 0; i < reps; i++) {
        // The multiplication factor of 5000 is there to space the
        // timestamps out a bit so that we exercise the slotCache
        // purging code path.
        assertNotNull(mapper.map(t1 + (i * 5000), SERVICENAME));
    }
    long duration = System.currentTimeMillis() - start;
    log.fine("Mapping reps=" + reps + ", duration= " + duration + " ms ("
             + ((reps / duration) * 1000) + " maps/sec)"
    );
}