return accessor;
}
protected static OAuth2TokenPersistence getRefreshToken() throws Exception {
final OAuth2TokenPersistence refreshToken = new OAuth2TokenPersistence(
MockUtils.getDummyEncrypter());
refreshToken.setExpiresAt(1L);
refreshToken.setGadgetUri(MockUtils.GADGET_URI1);
refreshToken.setIssuedAt(0L);
refreshToken.setMacAlgorithm("");
refreshToken.setMacExt("");
refreshToken.setMacSecret(new byte[] {});
refreshToken.setProperties(MockUtils.EMPTY_MAP);
refreshToken.setScope(MockUtils.SCOPE);
refreshToken.setSecret(MockUtils.ACCESS_SECRET.getBytes("UTF-8"));
refreshToken.setServiceName(MockUtils.SERVICE_NAME);
refreshToken.setTokenType(OAuth2Message.MAC_TOKEN_TYPE);
refreshToken.setType(OAuth2Token.Type.REFRESH);
refreshToken.setUser(MockUtils.USER);
return refreshToken;
}