FF4j ff4j = new FF4j().autoCreate(true).create(
new Feature("coco", true, "grp2", "", Arrays.asList(new String[] {"ROLEA"})));
Assert.assertTrue(ff4j.check("coco"));
ff4j.setAuthorizationsManager(mockAuthManager);
Assert.assertTrue(ff4j.check("coco"));
FlippingExecutionContext ex = new FlippingExecutionContext();
ex.putString("OK", "OK");
Assert.assertTrue(ff4j.check("coco", ex));
Assert.assertTrue(ff4j.checkOveridingStrategy("coco", mockFlipStrategy));
Assert.assertTrue(ff4j.checkOveridingStrategy("coco", null, null));
Assert.assertFalse(ff4j.checkOveridingStrategy("cocorico", mockFlipStrategy));
}