@Test
public void testValidateKeyset_shouldWork() throws Exception {

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