attrs = store.getMatches(attrSelector);
if (attrs.size() != 1 || !attrs.contains(attrCert))
{
fail("attrCert not found on serial number");
}
attrSelector = (X509AttributeCertStoreSelector)attrSelector.clone();
if (!attrSelector.getSerialNumber().equals(attrCert.getSerialNumber()))
{
fail("serial number get not correct");
}
attrs = store.getMatches(attrSelector);