public void testSignAndVerify()
throws Exception {
JWSHeader header = JWSHeader.parse(b64header);
assertEquals("HS256 alg check", JWSAlgorithm.HS256, header.getAlgorithm());
assertEquals("JWT type check", new JOSEObjectType("JWT"), header.getType());
JWSObject jwsObject = new JWSObject(header, payload);
assertEquals("State check", JWSObject.State.UNSIGNED, jwsObject.getState());