String actual = sb.toString();
Assert.assertEquals(actual, expected);
}
private void verifyCommandOrdering(String[] commandNames, Object[] commands) {
CommandMain cm = new CommandMain();
JCommander jc = new JCommander(cm);
for (int i = 0; i < commands.length; i++) {
jc.addCommand(commandNames[i], commands[i]);
}