}
}
@Test
public void testTranslatePINImpl() throws Throwable {
EncryptedPIN pinUnderZPK = new EncryptedPIN("3C0CA40863092C3A", SMAdapter.FORMAT01,"1234567890120");
EncryptedPIN pinUnderTPK = jcesecmod.translatePINImpl(pinUnderZPK, zpk, tpk, SMAdapter.FORMAT01);
//Clear keys are that same so after translation expected result must be unchanged
byte[] expected = ISOUtil.hex2byte("3C0CA40863092C3A");
assertArrayEquals(expected, pinUnderTPK.getPINBlock());
assertEquals(SMAdapter.FORMAT01, pinUnderTPK.getPINBlockFormat());
assertEquals("123456789012", pinUnderTPK.getAccountNumber());
}