AesCtrKeyManager extends KeyTypeManager<AesCtrKey> { @Override public int getVersion() { return 0; } AesCtrKeyManager(); @Override String getKeyType(); @Override int getVersion(); @Override KeyMaterialType keyMaterialType(); @Override void validateKey(AesCtrKey key); @Override AesCtrKey parseKey(ByteString byteString); @Override KeyFactory<AesCtrKeyFormat, AesCtrKey> keyFactory(); static void register(boolean newKeyAllowed);  }
@Test public void createKey_correctVersion() throws Exception { assertThat(factory.createKey(createFormat(16, 16)).getVersion()).isEqualTo(0); }