testLockReleasedCorrectly(TxCompletionNotificationCommand.class);
}
private void testLockReleasedCorrectly(Class<? extends ReplicableCommand> toBlock ) throws Throwable {
final ControlledCommandFactory ccf = ControlledCommandFactory.registerControlledCommandFactory(advancedCache(1), toBlock);
ccf.gate.close();
final Set<Object> keys = new HashSet<Object>(KEY_SET_SIZE);
//fork it into another test as this is going to block in commit