private void doAreValuesEqualAssert(final RefDataValue value1,
                                        final RefDataValue value2,
                                        final boolean expectedResult) {
        lmdbEnv.doWithWriteTxn(writeTxn -> {
            ValueStoreKey valueStoreKey1 = getOrCreate(writeTxn, value1);

            ByteBuffer valueStoreKeyBuffer = valueStoreDb.getPooledKeyBuffer().getByteBuffer();
            valueStoreDb.serializeKey(valueStoreKeyBuffer, valueStoreKey1);

            final StagingValue stagingValue = convert(value2);

            boolean areValuesEqual = valueStoreDb.areValuesEqual(writeTxn, valueStoreKeyBuffer, stagingValue);
            assertThat(areValuesEqual).isEqualTo(expectedResult);
        });
    }
Generate a list (of size desiredRecords) of strings that all share the same hashcode
Adapted from https://gist.github.com/vaskoz/5703423
stroom-pipeline/src/test/java/stroom/pipeline/refdata/store/offheapstore/databases/TestValueStoreDb.java