@Test
public void testRegisterKeyType_NoCatalogue_shouldThrowException() throws Exception {

  KeyTypeEntry entry = KeyTypeEntry.newBuilder().setCatalogueName("DoesNotExist").build();
  try {
    Config.registerKeyType(entry);
    fail("Expected GeneralSecurityException");
  } catch (GeneralSecurityException e) {
    // expected
  }
}