final OAuth2HandlerError result = fixture.handleRequest(accessor, request);
Assert.assertNull(result);
final OAuth2Token accessToken = CodeAuthorizationResponseHandlerTest.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 = CodeAuthorizationResponseHandlerTest.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"));
}