@Test
public void testGetKeysetInfo() throws Exception {

  String keyValue = "01234567890123456";
  Keyset keyset =
      TestUtil.createKeyset(
          TestUtil.createKey(
              TestUtil.createHmacKeyData(keyValue.getBytes("UTF-8"), 16),
              42,
              KeyStatusType.ENABLED,
              OutputPrefixType.TINK));
  assertTrue(keyset.toString().contains(keyValue));
  KeysetInfo keysetInfo = Util.getKeysetInfo(keyset);
  assertFalse(keysetInfo.toString().contains(keyValue));
}