@Test
public void terminateProcessInAvailabilityZone() throws Exception
{

    PowerMockito.when(ec2Raider.getInstancesByName(Mockito.anyString())).thenReturn(createInstances());
    PowerMockito.when(ec2Raider.getEc2InstancesForAvailabilityZone(Mockito.anyString(), Mockito.anyList())).thenReturn(createInstances());
    instanceFailureStepDefinitions.givenEC2InstanceName("test");
    Assert.assertEquals(executionStateCache.getEc2Tag(), "test");
    instanceFailureStepDefinitions.terminateProcessInAvailabilityZone("nginx",1, "us-west-2a");
    Assert.assertTrue(executionStateCache.getProcessNames().contains("nginx"));
}