CommandTree { String[] removeInitialArg(String[] args) { String[] newArgs = new String[args.length - 1]; System.arraycopy(args, 1, newArgs, 0, args.length - 1); return newArgs; } CommandTree(); private  CommandTree(@NotNull CommandTree parent, @NotNull String name); void registerKeysForAlias(@NotNull String alias); String[] joinArgsForKnownCommands(String[] args); CommandTree getTreeAt(String path); @Override String toString(); Set<String> getSubCommandSet();  }
@Test public void removeInitialArgTest() throws Exception { assertArrayEquals(new String[]{"one"}, commandTree.removeInitialArg(new String[]{"test", "one"})); }