TCTokenVerifier { public void verifyServerAddress() throws InvalidRedirectUrlException, InvalidTCTokenElement, UserCancellationException { String value = token.getServerAddress(); try { assertRequired("ServerAddress", value); } catch (InvalidTCTokenElement ex) { determineRefreshAddress(ex); } try { assertHttpsURL("ServerAddress", value); } catch (InvalidTCTokenUrlException ex) { determineRefreshAddress(ex); } } 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 testVerifyServerAddress() throws ActivationError { token.setServerAddress(null); verifier.verifyServerAddress(); }