@Test
public void testTerminateProcessInAvailabilityZone() throws Exception
{

    executionStateCache.setInstances(createInstances());
    ssmStepDefinitions.terminateProcessInAvailabilityZone("nginx", 1,"us-west-2c");
    Assert.assertEquals(executionStateCache.getCommandId(), "1234");
    Assert.assertTrue(executionStateCache.getInstances().size()>0);
    Assert.assertTrue(executionStateCache.getProcessNames().contains("nginx"));
    Assert.assertTrue(executionStateCache.getSsmCommandInvocationInstances().size() > 0);
    Assert.assertTrue(executionStateCache.isHealProcess());
}