if (i == maxTasks / 2) {
instance2.getLifecycleService().shutdown();
}
}
assertTrueEventually(new AssertTask() {
public void run() throws Exception {
List<Integer> actualOrder = processorMap.get(key);
//using >= for the test, as it can be the case that an entry processor could be executed more the once
//when the owning node is terminated after running the entry processor (and the backup) but before the response is sent
assertTrue("failed to execute all entry processor tasks at iteration",