	@Test
	public void testAttributeCollection() throws Exception {


		// identity attribute 1
		stringDatatype = new URI("http://www.w3.org/2001/XMLSchema#string");
		subjectId = new URI("urn:oasis:names:tc:xacml:1.0:subject:subject-id");
		tokenId = new URI("urn:org:globus:test:token-id");

		AttributeIdentifier attrIden = new AttributeIdentifier(subjectId, stringDatatype, true);

		// issuer 1
		Set<String> hset = new HashSet<String>();
		hset.add("dummy");
		Attribute<String> attr = new Attribute<String>(attrIden, null, Calendar.getInstance(), null, hset);
		IdentityAttributeCollection coll = new IdentityAttributeCollection();
		coll.add(attr);
		issuer = new EntityAttributes(coll, null, null);

		// same issure, different java object
		issuer2 = new EntityAttributes(coll, null, null);

		// another issuer
		hset = new HashSet<String>();
		hset.add("dummy123");
		attr = new Attribute<String>(attrIden, null, Calendar.getInstance(), null, hset);
		coll = new IdentityAttributeCollection();
		coll.add(attr);
		issuer1 = new EntityAttributes(coll, null, null);

		attrCollectionTest(false);
		attrCollectionTest(true);
	}