HadoopScriptHandler handler = handler(
"env.ASAKUSA_HOME", getAsakusaHome().getAbsolutePath(),
"prop.hello", "handler",
"prop.bar", "moga");
ExecutionContext context = new ExecutionContext(
"tbatch", "tflow", "texec", ExecutionPhase.MAIN, map());
execute(context, script, handler);
List<String> results = getOutput(shell);
assertThat(results.subList(0, 5), is(Arrays.asList(
"com.example.Client",
"tbatch",
"tflow",
"texec",
context.getArgumentsAsString())));
List<String> rest = results.subList(5, results.size());
int hello = rest.indexOf("hello=world");
assertThat(hello, greaterThanOrEqualTo(1));
assertThat(rest.get(hello - 1), is("-D"));