public void testEngineGenerateCertPath1() throws Exception {
X509CertFactoryImpl certFactory = new X509CertFactoryImpl();
ByteArrayInputStream bais =
new ByteArrayInputStream(
CertFactoryTestData.getCertPathPKCS7Encoding());
certFactory.engineGenerateCertPath(bais, "PKCS7");
try {
certFactory.engineGenerateCertPath(bais, "PKCS7");
fail("Expected CertificateException was not thrown.");
} catch (CertificateException e) {