String procName = neworder.class.getSimpleName();
Object params[] = RegressionSuiteUtil.generateNewOrder(catalogContext.numberOfPartitions, true, WAREHOUSE_ID, DISTRICT_ID);
ClientResponse cr = client.callProcedure(procName, params);
assertTrue(cr.hasDebug());
PartitionSet touched = new PartitionSet(cr.getDebug().getExecTouchedPartitions());
assertEquals(cr.toString(), 2, touched.size());
int basePartition = cr.getBasePartition();
assertTrue(cr.toString(), touched.contains(basePartition));
PartitionSet early = cr.getDebug().getEarlyPreparePartitions();
assertFalse(cr.toString(), early.isEmpty());
touched.remove(basePartition);
int remotePartition = touched.get();
assertNotSame(HStoreConstants.NULL_PARTITION_ID, remotePartition);
// System.err.println(cr);
assertFalse(cr.toString(), early.contains(basePartition));
assertTrue(cr.toString(), early.contains(remotePartition));
}