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());
assertSame(a1, choice.iterator().next());