@Test
public void readNoSecretFailWithInvalidKeyset() throws Exception {

  byte[] proto = new byte[] {0x00, 0x01, 0x02};
  try {
    KeysetHandle unused = KeysetHandle.readNoSecret(proto);
    fail("Expected GeneralSecurityException");
  } catch (GeneralSecurityException e) {
    assertExceptionContains(e, "invalid");
  }
}