@Test
  public void multiplyByGenerator_nonNistSpec_throws() throws Exception {
    ECParameterSpec nonNistSpec = p256WithDifferentGenerator();
    assertThrows(
        GeneralSecurityException.class,
        () -> EllipticCurvesUtil.multiplyByGenerator(BigInteger.TEN, nonNistSpec));
  }
Unit tests for {@link com.google.crypto.tink.subtle.EllipticCurvesUtil}.
java_src/src/test/java/com/google/crypto/tink/internal/EllipticCurvesUtilTest.java