@Test
public void getPrimitive_throwsForUnknownPrimitives() throws Exception {

  KeyTypeManager<AesGcmKey> keyManager = new TestKeyTypeManager();
  try {
    keyManager.getPrimitive(AesGcmKey.getDefaultInstance(), Primitive1.class);
    fail();
  } catch (IllegalArgumentException e) {
    // expected
  }
}