assert tm.getTransaction() == null : "Should have no ongoing txs";
assert getOnDifferentThread(cache, "k") == null;
assert getOnDifferentThread(cache, "k2") == null;
cache.endBatch(true); // should be a no op
assert "v".equals(getOnDifferentThread(cache, "k"));
assert "v2".equals(getOnDifferentThread(cache, "k2"));
}