SignatureRecord sign = new SignatureRecordImpl(
"a=rsa-sha1; c=relaxed/relaxed;\r\n"
+ " d=gmail.com; s=beta;\r\n"
+ " h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type;\r\n"
+ " b=Kw/TqnjB4L5ZC7DX1ibiNkuIw630uHZvzuozn/e6yTm3U8ObWEz/rJK5GO8RSrF56JrCA/xo8W2CGmyNmpQYbEpLl5P9/NcJSYUmln/O6GSa4Usyv4FdEU4FVjkyW0ToGFHNkw9Mm0urveA4Lcfk9gClJczXnvGBdiv/bkVBEJk=");
sign.validate();
fail("expected error on missing v=");
} catch (IllegalStateException e) {
}
try {
SignatureRecord sign = new SignatureRecordImpl(