@Test
public void validateKey_smallModulus() throws Exception {

  RsaSsaPssPublicKey publicKey = nistTestVectors[0].publicKeyProto;
  RsaSsaPssPublicKey invalidKey =
      RsaSsaPssPublicKey.newBuilder(publicKey)
          .setN(ByteString.copyFrom(TestUtil.hexDecode("23")))
          .setE(ByteString.copyFrom(TestUtil.hexDecode("03")))
          .build();
  try {
    verifyManager.validateKey(invalidKey);
    fail();
  } catch (GeneralSecurityException e) {
    // expected
  }
}