@Test
public void validateKey_version() throws Exception {

  ChaCha20Poly1305KeyManager manager = new ChaCha20Poly1305KeyManager();
  try {
    manager.validateKey(
        ChaCha20Poly1305Key.newBuilder(createChaCha20Poly1305Key(32)).setVersion(1).build());
    fail();
  } catch (GeneralSecurityException e) {
    // expected
  }
}