{
oneOf(actionContext).getParams();
will(returnValue(new GetConsumerTokenInfoRequest(securityToken, consumerInfo, "serviceName",
"tokenName")));
OAuthConsumer consumer = new OAuthConsumer("", "", "", "", "");
OAuthToken token = new OAuthToken(consumer, "", "", "", "");
token.setTokenExpireMillis(0L);
oneOf(securityToken).getAppUrl();
will(returnValue("http://localhost:4040/some/path"));
oneOf(securityToken).getViewerId();
will(returnValue("123"));
oneOf(securityToken).getOwnerId();
will(returnValue("456"));
oneOf(consumerMapper).execute(with(any(OAuthConsumerRequest.class)));
will(returnValue(new OAuthConsumer("", "", "", "", "")));
oneOf(tokenMapper).execute(with(any(OAuthTokenRequest.class)));
will(returnValue(token));
}
});