@Test
public void testVoidInputs() throws Exception {

  KeysetHandle unused;
  try {
    KeysetReader reader = BinaryKeysetReader.withBytes(new byte[0]);
    unused = KeysetHandle.read(reader, null /* masterKey */);
    fail("Expected GeneralSecurityException");
  } catch (GeneralSecurityException e) {
    assertExceptionContains(e, "empty keyset");
  }
}