public void testShortRead() throws Exception {
   SigningPublicKey publicKey = new SigningPublicKey();
   ByteArrayInputStream in =
       new ByteArrayInputStream("six times nine equals forty-two".getBytes());
   boolean error = false;
   try {
     publicKey.readBytes(in);
   } catch (DataFormatException dfe) {
     error = true;
   }
   assertTrue(error);
 }