assertThat(newCLICommandInvoker(rr.j,cmd).withStdin(newStringInputStream(xml.replace("echo configured by GUI","echo configured by CLI"))).invokeWithArgs("s"),CLICommandInvoker.Matcher.succeededSilently());
s=(DumbSlave)rr.j.jenkins.getNode("s");
assertEquals("echo configured by CLI",((CommandLauncher)s.getLauncher()).getCommand());