final OAuth2HandlerError result = TokenAuthorizationResponseHandlerTest.tarh.handleResponse(
accessor, response);
Assert.assertNull(result);
final OAuth2Token accessToken = TokenAuthorizationResponseHandlerTest.store.getToken(
accessor.getGadgetUri(), accessor.getServiceName(), accessor.getUser(),
accessor.getScope(), OAuth2Token.Type.ACCESS);
Assert.assertNotNull(accessToken);
Assert.assertEquals("xxx", new String(accessToken.getSecret(), "UTF-8"));
Assert.assertEquals(OAuth2Message.BEARER_TOKEN_TYPE, accessToken.getTokenType());
Assert.assertTrue(accessToken.getExpiresAt() > 1000);
final OAuth2Token refreshToken = TokenAuthorizationResponseHandlerTest.store.getToken(
accessor.getGadgetUri(), accessor.getServiceName(), accessor.getUser(),
accessor.getScope(), OAuth2Token.Type.REFRESH);
Assert.assertNotNull(refreshToken);
Assert.assertEquals("yyy", new String(refreshToken.getSecret(), "UTF-8"));
}