// This test is partly so I can compare the time it takes to
// assign one node, or the same node twice
addNodes(null);
final int MAX = 25;
Identity ids[] = new Identity[MAX];
for (int i = 0; i < MAX; i++) {
ids[i] = new IdentityImpl("identity" + i);
nodeMappingService.assignNode(NodeMappingService.class, ids[i]);
verifyMapCorrect(ids[i]);
}
for (int j = 0; j < MAX; j++) {
final Identity id = ids[j];
txnScheduler.runTask(
new TestAbstractKernelRunnable() {
public void run() throws Exception {
nodeMappingService.getNode(id);
}