@Test
public void testTerminateCommandOnHealthyInstances() throws Exception
{

    executionStateCache.setInstances(createInstances());
    ssmStepDefinitions.terminateCommandOnHealthyInstances("nginx", 1);
    Assert.assertEquals(executionStateCache.getCommandId(), "1234");
    Assert.assertTrue(executionStateCache.getInstances().size()>0);
    Assert.assertTrue(executionStateCache.getProcessNames().contains("nginx"));
}