public void testCertificateList() {
try {
AlgorithmIdentifier signature =
new AlgorithmIdentifier(algOID, algParams);
Name issuer = new Name(issuerName);
TBSCertList tbscl =
new TBSCertList(signature, issuer, thisUpdate);
CertificateList cl =
new CertificateList(tbscl, signature, new byte[] {0});
byte[] encoding = CertificateList.ASN1.encode(cl);
CertificateList.ASN1.decode(encoding);
tbscl = new TBSCertList(2, signature, issuer, thisUpdate,
nextUpdate, revokedCertificates, crlExtensions);
cl = new CertificateList(tbscl, signature, new byte[] {0});
encoding = CertificateList.ASN1.encode(cl);