*/
public void testDHGenParameterSpec() {
int[] primes = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE};
int[] exponents = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE};
for (int i=0; i<primes.length; i++) {
DHGenParameterSpec ps = new DHGenParameterSpec(primes[i],
exponents[i]);
assertEquals("The value returned by getPrimeSize() must be "
+ "equal to the value specified in the constructor",
ps.getPrimeSize(), primes[i]);
assertEquals("The value returned by getExponentSize() must be "
+ "equal to the value specified in the constructor",
ps.getPrimeSize(), exponents[i]);
}
}