@Test
public void testSetMappingDoesNotScanDirectoryKeySpace() {

    FDBStoreTimer timer = new FDBStoreTimer();
    try (FDBRecordContext context = database.openContext()) {
        context.setTimer(timer);
        for (long i = 0; i < 10; i++) {
            globalScope.setMapping(context, "some-key-" + i, i).join();
        }
    }
    assertThat("there are no scans of the directory layer", timer.getCount(FDBStoreTimer.DetailEvents.RD_CACHE_DIRECTORY_SCAN), is(0));
}