@Test
void testDoWithRefStreamDefinitionLock() {

    final RefStreamDefinition refStreamDefinition = buildUniqueRefStreamDefinition();
    // ensure reentrance works
    ((RefDataOffHeapStore) refDataStore).doWithRefStreamDefinitionLock(refStreamDefinition, () -> {
        LOGGER.debug("Got lock");
        ((RefDataOffHeapStore) refDataStore).doWithRefStreamDefinitionLock(refStreamDefinition, () -> {
            LOGGER.debug("Got inner lock");
        });
    });
}