@Test
public void testSanity() throws Exception {
String s1 = "somedata";
RAMDirectory ramDir = new RAMDirectory();
boolean compressionOff = false;
ZoieStore store = LuceneStore.openStore(ramDir, "test", compressionOff);
store.put(1, s1.getBytes(UTF8), "1");
Assert.assertEquals("1", store.getVersion());
byte[] data = store.get(1);
Assert.assertNotNull(data);
Assert.assertEquals(s1, new String(data, UTF8));
store.commit();
data = store.get(1);
Assert.assertNotNull(data);
Assert.assertEquals(s1, new String(data, UTF8));
store.delete(1, "2");
Assert.assertEquals("2", store.getVersion());
data = store.get(1);
Assert.assertNull(data);
store.commit();
data = store.get(1);
Assert.assertNull(data);
store.close();
}