@Test
public void validateKey_wrongVersion() throws Exception {

  RsaSsaPkcs1PublicKey publicKey = nistTestVectors[0].publicKeyProto;
  RsaSsaPkcs1PublicKey invalidKey =
      RsaSsaPkcs1PublicKey.newBuilder(publicKey).setVersion(1).build();
  try {
    verifyManager.validateKey(invalidKey);
    fail();
  } catch (GeneralSecurityException e) {
    // expected
  }
}