/**
  * Test that a new authorization token based off of an existing authorization token results its a
  * distinct, non-null access token.
  */
 @Test
 public void testGetAccessTokenNewToken() {
   AuthorizationToken originalToken = new AuthorizationToken(VERIFICATION);
   AuthorizationToken newToken = new AuthorizationToken(originalToken);
   Assert.assertNotNull(newToken.getAccessToken());
   Assert.assertNotEquals(originalToken.getAccessToken(), newToken.getAccessToken());
 }
 /**
  * Test that an authorization token that is being reconstructed from an existing authorization
  * token has a getter that returns the same access token with which it was built.
  */
 @Test
 public void testGetAccessTokenOldToken() {
   AuthorizationToken token =
       new AuthorizationToken(CODE, ACCESS_TOKEN, REFRESH_TOKEN, CREATION_TIME, EXPIRATION_TIME);
   Assert.assertEquals(ACCESS_TOKEN, token.getAccessToken());
 }
 /**
  * Test that a new authorization token built from an authorization code response returns a
  * non-null access token.
  */
 @Test
 public void testGetAccessTokenBrandNewToken() {
   AuthorizationToken token = new AuthorizationToken(VERIFICATION);
   Assert.assertNotNull(token.getAccessToken());
 }