@Test
public void newKeyData_keyMaterialTypeCorrect() throws Exception {

  KeyManager<Aead> keyManager = new KeyManagerImpl<>(new TestKeyTypeManager(), Aead.class);
  assertThat(
          keyManager
              .newKeyData(AesGcmKeyFormat.newBuilder().setKeySize(16).build().toByteString())
              .getKeyMaterialType())
      .isEqualTo(KeyMaterialType.SYMMETRIC);
}