public void testNullData() throws Exception {
    SigningPublicKey publicKey = new SigningPublicKey();
    publicKey.toString();

    boolean error = false;
    try {
      publicKey.writeBytes(new ByteArrayOutputStream());
    } catch (DataFormatException dfe) {
      error = true;
    }
    assertTrue(error);
  }