other.addAssertion(a1);
ea.addPolicyComponent(other);
Collection<PolicyAssertion> secondAlternative =
CastUtils.cast(other.getPolicyComponents(), PolicyAssertion.class);
EasyMock.expect(engine.supportsAlternative(firstAlternative, assertor, m)).andReturn(false);
EasyMock.expect(engine.supportsAlternative(secondAlternative, assertor, m)).andReturn(true);
control.replay();
chosen = selector.selectAlternative(policy, engine, assertor, null, m);
assertSame(1, chosen.size());
assertSame(chosen.size(), secondAlternative.size());