@Test
public void validateKeyFormat_empty() throws Exception {

  try {
    new AesCmacPrfKeyManager()
        .keyFactory()
        .validateKeyFormat(AesCmacPrfKeyFormat.getDefaultInstance());
    fail();
  } catch (GeneralSecurityException e) {
    // expected.
  }
}