@Test
public void testDiskFullOnInstance() throws Exception
{

    PowerMockito.when(ec2Raider.getInstancesByName("test")).thenReturn(createInstances());
    instanceFailureStepDefinitions.givenEC2InstanceName("test");
    Assert.assertEquals(executionStateCache.getEc2Tag(), "test");
    Assert.assertTrue(executionStateCache.getInstances().size()>0);
    PowerMockito.when(ec2Raider.getEC2InstanceById("i-1234")).thenReturn(createInstances().get(0));
    PowerMockito.when(ec2Raider.getEC2InstanceById("i-4567")).thenReturn(createInstances().get(1));
    PowerMockito.when(ec2Raider.getInstanceStatusById("i-1234")).thenReturn("running");
    try {
        instanceFailureStepDefinitions.diskFullOnInstance("root", 50, 1);
    }
    catch (Throwable t)
    {
        t.printStackTrace();
    }
    Assert.assertEquals(executionStateCache.getUnhealthyInstances().size(), 1);
}