@VisibleForTesting
    WriteOptions getOptions() {
        return options;
    }
@Test
    public void testNotClosingPassedInWriteOption() throws Exception {
        try (WriteOptions passInOption = new WriteOptions().setDisableWAL(false)) {
            try (RocksDB db = RocksDB.open(folder.newFolder().getAbsolutePath());
                    RocksDBWriteBatchWrapper writeBatchWrapper =
                            new RocksDBWriteBatchWrapper(db, passInOption, 200, 50)) {
                WriteOptions options = writeBatchWrapper.getOptions();
                assertTrue(options.isOwningHandle());
                assertFalse(options.disableWAL());
            }
            assertTrue(passInOption.isOwningHandle());
        }
    }