@Test
    void testBatchingWriteTxnWrapper_withBatchSize_withAbort() throws Exception {
        doWithEnvAndDb(
                true,
                (lmdbEnv, database) -> {
                    try (final BatchingWriteTxn batchingWriteTxn = lmdbEnv.openBatchingWriteTxn(2)) {
                        for (int i = 0; i < 9; i++) {
                            database.put(batchingWriteTxn.getTxn(), buildKey(i), buildValue(i), false);
                            batchingWriteTxn.commitIfRequired();
                        }

                        // abort the txn so no. 9 should be rolled back leaving 8
                        batchingWriteTxn.abort();
                    }

                    Assertions.assertThat(database.getEntryCount())
                            .isEqualTo(8);
                });
    }
Demonstrate the behaviour of too many readers trying to do a get() on LMDB at once
where concurrent readers > maxReaders setting. Tests the concurrency protection in
{@link LmdbEnv}
stroom-lmdb/src/test/java/stroom/lmdb/TestLmdbEnv.java