public final void testIsStatePreserved1(){
  RSAOtherPrimeInfo[] opi1=opi.clone();
  RSAMultiPrimePrivateCrtKeySpec ks=new RSAMultiPrimePrivateCrtKeySpec(BigInteger.ONE,BigInteger.ONE,BigInteger.ONE,BigInteger.ONE,BigInteger.ONE,BigInteger.ONE,BigInteger.ONE,BigInteger.ONE,opi1);
  opi1[2]=new RSAOtherPrimeInfo(BigInteger.ZERO,BigInteger.ZERO,BigInteger.ZERO);
  assertTrue(checkOtherPrimeInfo(ks.getOtherPrimeInfo()));
}

public final void testIsStatePreserved1 ( ) { RSAOtherPrimeInfo [ ] opi1 = opi . clone ( ) ; RSAMultiPrimePrivateCrtKeySpec ks = new RSAMultiPrimePrivateCrtKeySpec ( BigInteger . ONE , BigInteger . ONE , BigInteger . ONE , BigInteger . ONE , BigInteger . ONE , BigInteger . ONE , BigInteger . ONE , BigInteger . ONE , opi1 ) ; opi1 [ 2 ] = new RSAOtherPrimeInfo ( BigInteger . ZERO , BigInteger . ZERO , BigInteger . ZERO ) ; assertTrue ( checkOtherPrimeInfo ( ks . getOtherPrimeInfo ( ) ) ) ; }
tests that internal state of the object can not be modified by modifying initial array
