ByteArrayInputStream bais =
new ByteArrayInputStream(
CertFactoryTestData.getCRLEncoding());
crl = certFactory.engineGenerateCRL(bais);
assertNotNull("First generated CRL is null", crl);
crl = certFactory.engineGenerateCRL(bais);
assertNotNull("Second generated CRL is null", crl);
try {
certFactory.engineGenerateCRL(bais);
fail("Expected CRLException was not thrown.");