@Test
public void testStopProcessOnHealthyInstances() throws Exception
{

    PowerMockito.when(ec2Raider.getInstancesByName("test")).thenReturn(createInstances());
    instanceFailureStepDefinitions.givenEC2InstanceName("test");
    Assert.assertEquals(executionStateCache.getEc2Tag(), "test");
    Assert.assertTrue(executionStateCache.getInstances().size()>0);
    instanceFailureStepDefinitions.stopProcessOnHealthyInstances("process","nginx",1);
    Assert.assertEquals(executionStateCache.getUnhealthyInstances().size(), 1);
    Assert.assertTrue(executionStateCache.getProcessNames().contains("nginx"));
}