display.hideScopeDialog();
EasyMock.expectLastCall();
display.setState(State.PRIVATE, authScopes, authScopes);
EasyMock.expectLastCall();
AuthToken token = EasyMock.createMock(AuthToken.class);
EasyMock.expect(token.getScopes()).andReturn(authScopes);
EasyMock.expect(authManager.getToken(service)).andReturn(token);
EasyMock.replay(service, display, method1, method2, authManager, token);
AuthPresenter presenter = new AuthPresenter(service, authManager, analytics, display);