@Test
    void testGet_found() {

        String uuidStr = UUID.randomUUID().toString();
        String versionUuidStr = UUID.randomUUID().toString();
        // each one is different by the partIndex
        final RefStreamDefinition refStreamDefinition = new RefStreamDefinition(
                uuidStr,
                versionUuidStr,
                123456L);
        MapDefinition mapDefinition = new MapDefinition(refStreamDefinition, "MyMapName");

        loadEntries(Collections.singletonList(mapDefinition));

        try (PooledByteBuffer uidPooledBuffer = mapDefinitionUIDStore.getUidPooledByteBuffer()) {
            Optional<UID> optUid = mapDefinitionUIDStore.getUid(
                    mapDefinition,
                    uidPooledBuffer.getByteBuffer());

            assertThat(optUid).isNotEmpty();
            assertThat(optUid.get()).isNotNull();
        }
    }
Noddy test to verify how LMDB copes with different buffer capacities
stroom-pipeline/src/test/java/stroom/pipeline/refdata/store/offheapstore/TestMapDefinitionUIDStore.java