public void testEqual() {
PolicyAssertion other = new PrimitiveAssertion(new QName("abc"));
for (int i = 0; i < policies.length; i++) {
PolicyAssertion a =
(PolicyAssertion)policies[i].getFirstPolicyComponent();
assertTrue("Assertion " + i + " should equal itself.", a.equal(a));
assertTrue("Assertion " + i + " should not equal other.", !a.equal(other));
for (int j = i + 1; j < policies.length; j++) {
Assertion b = (Assertion)policies[j].getFirstPolicyComponent();
if (j == 1) {
assertTrue("Assertion " + i + " should equal " + j + ".", a.equal(b));