@Test
public void keyFactory_throwsUnsupported() throws Exception {

  KeyTypeManager<AesGcmKey> keyManager = new TestKeyTypeManager();
  try {
    keyManager.keyFactory();
    fail();
  } catch (UnsupportedOperationException e) {
    // expected
  }
}