double expected_cost = costModel.estimateWorkloadCost(clone_catalogContext, workload, filter, null);
System.err.println("ORIGINAL COST: " + expected_cost);
// Now apply the update and get the new cost. It should be lower
// We have to clear the cache for these queries first though
vpc.applyUpdate();
costModel.invalidateCache(vpc.getOptimizedQueries());
double new_cost = costModel.estimateWorkloadCost(clone_catalogContext, workload, filter, null);
System.err.println("NEW COST: " + new_cost);
assert(new_cost < expected_cost) : String.format("%f < %f", new_cost, expected_cost);
}