SSMRaiderImpl implements SSMRaider { @Override public String executeShellCommand(List<String> instances, Command command, String... params) { return this.executeShellCommandsFromFile(instances, command.getCommandName()+".txt", params); } SSMRaiderImpl(); @Override String executeShellCommands(List<String> instances, List<String> commands); @Override String getCommandStatus(String commandId, String instanceId); @Override String getCommandStandardOutput(String commandId, String instanceId); @Override String getCommandErrors(String commandId, String instanceId); @Override String executeShellCommandsFromFile(List<String> instances, String fileName, String... params); @Override String executeShellCommand(List<String> instances, Command command, String... params);  }
@Test public void testExecuteShellCommand() throws Exception{ String commandId = ssmRaiderUnderTest.executeShellCommand(createInstancesList(),com.intuit.cloudraider.model.Command.KILLPROCESS,"java" ); Assert.assertEquals(commandId, "777"); }