public final void testGetKeySpecKeyString01() throws Exception {
boolean performed = false;
for (int i = 0; i < EncryptedPrivateKeyInfoData.algName0.length; i++) {
try {
EncryptedPrivateKeyInfo epki = new EncryptedPrivateKeyInfo(
EncryptedPrivateKeyInfoData.algName0[i][0],
EncryptedPrivateKeyInfoData.encryptedData);
try {
// check that method under test throws NPE
epki.getKeySpec((Key) null, "SomeProviderName");
fail(getName() + "NullPointerException has not been thrown");
} catch (NullPointerException ok) {
}
try {
// check that method under test throws NPE
epki.getKeySpec(new Key() {
public String getAlgorithm() {
return "alg";
}
public String getFormat() {