@Test
public void testArgsImmutability() throws Exception {

    final CommandInvocation commandInvocation = new CommandInvocation("cmd", "a", "t");
    commandInvocation.args()[1] = "b";
    assertArrayEquals(new String[] { "a", "t" }, commandInvocation.args());
}