all = new All();
ea.addPolicyComponent(all);
Collection<PolicyAssertion> minAlternative =
CastUtils.cast(all.getPolicyComponents(), PolicyAssertion.class);
policy.addPolicyComponent(ea);
EasyMock.expect(engine.supportsAlternative(maxAlternative, assertor)).andReturn(true);
EasyMock.expect(engine.supportsAlternative(minAlternative, assertor)).andReturn(true);
control.replay();
Collection<Assertion> choice = selector.selectAlternative(policy, engine, assertor, null);
assertEquals(1, choice.size());