@Test
public void validateKey_invalidVersion_throws() throws Exception {

  EciesAeadHkdfPrivateKey key =
      EciesAeadHkdfPrivateKey.newBuilder(createValidKey()).setVersion(1).build();
  try {
    manager.validateKey(key);
    fail();
  } catch (GeneralSecurityException e) {
    // expected
  }
}