// InvocationContext ctx = icc.getInvocationContext();
// LockManager lockManager = TestingUtil.extractComponent(cache, LockManager.class);
// lockManager.lockAndRecord(k, ctx);
// ctx.putLookedUpEntry(k, null);
DummyTransactionManager dtm = (DummyTransactionManager) tm();
tm().begin();
cache.put(k, "some");
final DummyTransaction transaction = dtm.getTransaction();
transaction.runPrepare();
tm().suspend();
// test that the key is indeed locked.
assertLocked(cache, k);