@Test
public void testRegisterKeyManager_keyManagerIsNull_shouldThrowException() throws Exception {

  try {
    Registry.registerKeyManager(null);
    fail("Expected IllegalArgumentException.");
  } catch (IllegalArgumentException e) {
    assertThat(e.toString()).contains("must be non-null");
  }
}