factory.generateCRLs(new ByteArrayInputStream(encoding));
fail("Expected exception was not thrown");
} catch (Exception e) { }
} else {
Collection crls =
factory.generateCRLs(new ByteArrayInputStream(encoding));
assertNotNull("Factory returned null on correct data", crls);
assertEquals("The size of collection differs from expected",
expected_size, crls.size());
verifyCRLs(crls);
}