BigInteger.valueOf(4L));
ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
// Test case 1: w is null
try {
new ECPublicKeySpec(null,
new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10));
fail("#1: Expected NPE not thrown");
} catch (NullPointerException ok) {
}
// Test case 2: params is null
try {
new ECPublicKeySpec(g, null);
fail("#2: Expected NPE not thrown");
} catch (NullPointerException ok) {
}
// Test case 3: both w and params are null
try {
new ECPublicKeySpec(null, null);
fail("#3: Expected NPE not thrown");
} catch (NullPointerException ok) {
}
}