"env.ASAKUSA_HOME", getAsakusaHome().getAbsolutePath(),
ProcessHadoopScriptHandler.KEY_CLEANUP, "true",
ProcessHadoopScriptHandler.KEY_WORKING_DIRECTORY, "OBSOLETE",
ProcessUtil.PREFIX_CLEANUP + "1", "OBSOLETE");
ExecutionContext context = new ExecutionContext(
"tbatch", "tflow", "texec", ExecutionPhase.CLEANUP, map());
handler.cleanUp(ExecutionMonitor.NULL, context);
List<String> results = getOutput(shell);
assertThat(results.subList(0, 5), is(Arrays.asList(
ProcessHadoopScriptHandler.CLEANUP_STAGE_CLASS,
"tbatch",
"tflow",
"texec",
context.getArgumentsAsString())));
}