ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
ObjectInput oi = marshaller.startObjectInput(in, false);
try {
cacheStore.fromStream(new UnclosableObjectInputStream(oi));
} finally {
marshaller.finishObjectInput(oi);
in.close();
}
assertRowCounts(2, 2);
assert cacheStore.load("String").getValue().equals("someValue");
assert cacheStore.load("String2").getValue().equals("someValue");