*/
public final void testEncryptedPrivateKeyInfoAlgorithmParametersbyteArray2()
throws NoSuchAlgorithmException, IOException {
// 1: pass null as AlgorithmParameters
try {
new EncryptedPrivateKeyInfo((AlgorithmParameters) null,
EncryptedPrivateKeyInfoData.encryptedData);
fail(getName() + ": NullPointerException has not been thrown");
} catch (NullPointerException ok) {
}
// 2: pass null as encrypted data
try {
AlgorithmParameters ap = AlgorithmParameters.getInstance("DSA");
// use pregenerated AlgorithmParameters encodings
ap.init(EncryptedPrivateKeyInfoData.getParametersEncoding("DSA"));
new EncryptedPrivateKeyInfo(ap, null);
fail(getName() + ": NullPointerException has not been thrown");
} catch (NullPointerException ok) {
}
}