@Test public void testIsReadOnly() throws Exception { int numKeys = 1000; int numValuesPerKeys = 1000; Map map = createAndFillMap(DIRECTORY, numKeys, numValuesPerKeys); Assert.assertFalse(map.isReadOnly()); map.close(); Options options = new Options(); options.setReadonly(true); map = new Map(DIRECTORY, options); Assert.assertTrue(map.isReadOnly()); map.close(); }