*/
public final void testGetEncoded02() throws IOException {
boolean performed = false;
for (int i = 0; i < EncryptedPrivateKeyInfoData.algName0.length; i++) {
try {
EncryptedPrivateKeyInfo epki = new EncryptedPrivateKeyInfo(
EncryptedPrivateKeyInfoData.algName0[i][0],
EncryptedPrivateKeyInfoData.encryptedData);
// check that method under test returns
// valid encoded form
byte[] refEnc = EncryptedPrivateKeyInfoData
.getValidEncryptedPrivateKeyInfoEncoding(
EncryptedPrivateKeyInfoData.algName0[i][0],
false);
// System.out.println(Array.toString(refEnc, " "));
byte[] actEnc = epki.getEncoded();
// System.out.println(Array.toString(actEnc, " "));
assertTrue(Arrays.equals(refEnc, actEnc));
performed = true;
} catch (NoSuchAlgorithmException allowedFailure) {