Collections.addAll(arguments, "-batch", "tbatch");
Collections.addAll(arguments, "-flow", "tflow");
Collections.addAll(arguments, "-execution", "texec");
Collections.addAll(arguments, "-phase", ExecutionPhase.MAIN.getSymbol());
Configuration conf = Yaess.parseConfiguration(arguments.toArray(new String[arguments.size()]));
assertThat(conf.mode, is(Mode.PHASE));
assertThat(conf.batchId, is("tbatch"));
assertThat(conf.flowId, is("tflow"));
assertThat(conf.executionId, is("texec"));
assertThat(conf.phase, is(ExecutionPhase.MAIN));