public void setUp() throws Exception {
originalDialogs = UISupport.getDialogs();
stubbedDialogs = new StubbedDialogs();
UISupport.setDialogs(stubbedDialogs);
OAuth2ProfileConfig configuration = OAuth2ProfileConfig.Factory.newInstance();
profile = new OAuth2Profile(ModelItemFactory.makeOAuth2ProfileContainer(), configuration);
clientFacade = mock(OAuth2ClientFacade.class);
action = new RefreshOAuthAccessTokenAction(profile) {
@Override
protected OAuth2ClientFacade getOAuthClientFacade() {