@Test
public void testRewriteShardCasMismatch() throws Exception {
TaskConfig storedConfig = productionTask();
TaskConfig modifiedConfig =
storedConfig.deepCopy().setExecutorConfig(new ExecutorConfig("aurora", "rewritten"));
IScheduledTask storedTask = IScheduledTask.build(
new ScheduledTask().setAssignedTask(new AssignedTask().setTask(storedConfig)));
InstanceKey instance = new InstanceKey(
JobKeys.from(
storedConfig.getOwner().getRole(),