FakeProcessorPlan[] plans = new FakeProcessorPlan[4];
for (int i = 0; i < plans.length; i++) {
plans[i] = new FakeProcessorPlan(1);
}
BatchedUpdatePlan plan = new BatchedUpdatePlan(Arrays.asList(plans), plans.length, null);
plan.open();
// First plan may or may not be opened, but all subsequent plans should not be opened.
for (int i = 1; i < plans.length; i++) {
assertFalse(plans[i].isOpened());
}
}