@Test
public void validateKey_wrongVersion() throws Exception {

  Ed25519PublicKey publicKey = signManager.getPublicKey(createPrivateKey());
  Ed25519PublicKey invalidKey = Ed25519PublicKey.newBuilder(publicKey).setVersion(1).build();
  try {
    verifyManager.validateKey(invalidKey);
    fail();
  } catch (GeneralSecurityException e) {
    // expected
  }
}