public void testCritHeaderParamIgnore()
throws Exception {
final String stringSecret = "3eae8196ad1b";
JWSHeader header = new JWSHeader(JWSAlgorithm.HS512);
header.setCustomParameter("exp", "2014-04-24");
header.setCriticalHeaders(new HashSet<String>(Arrays.asList("exp")));
JWSObject jwsObject = new JWSObject(header, payload);
MACSigner signer = new MACSigner(stringSecret);