protected <K, V> void putValues(final AbstractLmdbDb<K, V> lmdbDb,
                                    final boolean overwriteExisting,
                                    final boolean append,
                                    final Collection<Entry<K, V>> data) {
        lmdbDb.getLmdbEnvironment()
                .doWithWriteTxn(writeTxn -> {
                    data.forEach(entry -> {
                        lmdbDb.put(writeTxn,
                                entry.getKey(),
                                entry.getValue(),
                                overwriteExisting,
                                append);
                    });
                });
    }
Useful for comparing the behaviour of two different envs
stroom-lmdb/src/test/java/stroom/lmdb/AbstractDualEnvLmdbTest.java