try {
store.write(new MarshalledEntryImpl(1, "v1", null, sm));
store.write(new MarshalledEntryImpl(2, "v2", null, sm));
assertStoreSize(1, 1);
} finally {
sm.stop();
}
}
private void assertStoreSize(int expectedEntries, int expectedFree) {
assertEquals("Entries: " + store.getEntries(), expectedEntries, store.getEntries().size());