public void testSelector() throws Exception
{
X509AttributeCertificate aCert = createAttrCert();
X509AttributeCertStoreSelector sel = new X509AttributeCertStoreSelector();
sel.setAttributeCert(aCert);
boolean match = sel.match(aCert);
if (!match)
{
fail("Selector does not match attribute certificate.");
}
sel.setAttributeCert(null);