// perform the put in the cache & store, using same value:
putReturn = cache.put("k2", "v2-second");
//returned value from the cache:
assert "v2-second".equals(putReturn);
//and verify that the put operation updated the store too:
InvocationContextFactory icf = TestingUtil.extractComponent(cache, InvocationContextFactory.class);
InvocationContext context = icf.createSingleKeyNonTxInvocationContext();
assert "v2-second".equals(persistenceManager.loadFromAllStores("k2", context).getValue());
assertEquals(countingCS.numLoads,2, "Expected 2, was " + countingCS.numLoads);
assert countingCS.numContains == 0 : "Expected 0, was " + countingCS.numContains;
cache.containsKey("k1");