@Test
public void Should_checkDeletionFlag()
        throws Exception {

    IChildDeletionCheckStrategy strategy = new DefaultDeletionCheckStrategy();
    IObject ctx = IOC.resolve(Keys.getOrAdd(IObject.class.getCanonicalName()));
    IObject env = IOC.resolve(Keys.getOrAdd(IObject.class.getCanonicalName()),
            "{'context':{'deleteChild':true}}".replace('\'','"'));
    assertTrue(strategy.checkDelete(ctx, env));
    env = IOC.resolve(Keys.getOrAdd(IObject.class.getCanonicalName()),
            "{'context':{'deleteChild':false}}".replace('\'','"'));
    assertFalse(strategy.checkDelete(ctx, env));
    env = IOC.resolve(Keys.getOrAdd(IObject.class.getCanonicalName()),
            "{'context':{}}".replace('\'','"'));
    assertFalse(strategy.checkDelete(ctx, env));
}