OptionsAndArgs { public String getCommand() { return command; } OptionsAndArgs(Set<String> pCommands, String ... pArgs); String toAgentArg(); String getPid(); Pattern getProcessPattern(); String getCommand(); List<String> getExtraArgs(); boolean isQuiet(); String getPort(); boolean isVerbose(); boolean needsVm(); String getJarFilePath(); String getJarFileName(); static File lookupJarFile();  }
@Test public void defaultCommands() { OptionsAndArgs o = opts(); assertEquals(o.getCommand(),"list"); o = opts("12"); assertEquals(o.getCommand(), "toggle"); }