assert cacheStore.load(MIRCEA).getValue().equals("value");
assert cacheStore.load("String").getValue().equals("someValue");
}
public void testMultipleEntriesWithSameHashCode() throws Exception {
Person one = new Person("Mircea", "Markus", 28);
Person two = new Person("Manik", "Surtani", 28);
one.setHashCode(100);
two.setHashCode(100);
cacheStore.store(TestInternalCacheEntryFactory.create(one, "value"));
assertBinaryRowCount(1);
assertStringsRowCount(0);
cacheStore.store(TestInternalCacheEntryFactory.create(two, "otherValue"));
assertBinaryRowCount(1); //both go to same bucket