TCTokenVerifier { public void verifyBinding() throws InvalidRedirectUrlException, InvalidTCTokenElement { String value = token.getBinding(); assertRequired("Binding", value); checkEqualOR("Binding", value, "urn:liberty:paos:2006-08", "urn:ietf:rfc:2616"); } TCTokenVerifier(@Nonnull TCToken token, ResourceContext ctx); boolean isErrorToken(); void verifyUrlToken(); void verifyServerAddress(); void verifySessionIdentifier(); void verifyRefreshAddress(); void verifyCommunicationErrorAddress(); void verifyBinding(); void verifyPathSecurity();  }
@Test(expectedExceptions = InvalidTCTokenElement.class) public void testVerifyBinding() throws ActivationError { token.setBinding("urn:liberty:city:2006-08"); verifier.verifyBinding(); }