checkPoint.trigger("OUT_GET_TRANSACTIONS_" + address(2));
checkPoint.awaitStrict("IN_GET_TRANSACTIONS_" + address(1), 10, SECONDS);
checkPoint.awaitStrict("IN_GET_TRANSACTIONS_" + address(2), 10, SECONDS);
// See which cache receives the START_STATE_TRANSFER command first. We'll kill the other.
String event = checkPoint.peek(5, TimeUnit.SECONDS, "IN_START_STATE_TRANSFER_" + address(1),
"IN_START_STATE_TRANSFER_" + address(2));
int liveNode = event.endsWith(address(1).toString()) ? 1 : 2;
int nodeToKill = liveNode == 1 ? 2 : 1;
List<Address> keyOwners = cache(0).getAdvancedCache().getDistributionManager().locate(k1);
log.debugf("Killing node %s. Key %s is located on %s", address(nodeToKill), k1, keyOwners);