@Test
public void testValidateKeyset_withDestroyedKey_shouldWork() throws Exception {

  String keyValue = "01234567890123456";
  Keyset validKeyset =
      TestUtil.createKeyset(
          TestUtil.createKey(
              TestUtil.createHmacKeyData(keyValue.getBytes("UTF-8"), 16),
              42,
              KeyStatusType.ENABLED,
              OutputPrefixType.TINK),
          TestUtil.createKey(
              TestUtil.createHmacKeyData(keyValue.getBytes("UTF-8"), 16),
              42,
              KeyStatusType.DESTROYED,
              OutputPrefixType.TINK));
  try {
    Util.validateKeyset(validKeyset);
  } catch (GeneralSecurityException e) {
    fail("Valid keyset, should not fail: " + e);
  }
}