for (int i=0; i<bad.length; i++) {
bais = new ByteArrayInputStream(
(bad[i][0] + pkcs7so + bad[i][1]).getBytes("UTF-8"));
try {
factory.generateCRLs(bais);
fail("Expected exception was not thrown");
} catch (Exception e) { }
bais = new ByteArrayInputStream(
(bad[i][0] + pkcs7so + bad[i][1]).getBytes("UTF-8"));
try {