@Test
public void testIsExecuted() throws Exception {

    Mockito.when(info.getNode().getName()).thenReturn("testInfo");
    Mockito.when(action.getName()).thenReturn("testName");
    Mockito.when(action.getContentHash()).thenReturn("testHash");
    Assert.assertFalse(status.isExecuted(ctx, info, action));
    sling.build().resource("/test/testInfo");
    Assert.assertFalse(status.isExecuted(ctx, info, action));
    sling.build().resource("/test/testInfo", UpgradeStatus.PN_ACTIONS,
            new String[] { "testName_testHash", "anotherTest" });
    Assert.assertTrue(status.isExecuted(ctx, info, action));
    Mockito.when(action.getName()).thenReturn("anotherTest");
    Assert.assertFalse(status.isExecuted(ctx, info, action));
}