I'm trying to perform some unit testing in my application and I've ran into a problem. A simple graph request demands an AccessToken object which can only be claimed by -
AccessToken.getCurrentAccessToken()
or getting it in an authentication result. Both of the options requires a real authentication process with ui which makes it impossible to unit test. is there a way to create my own AccessToken object? I've tried to use reflection with no luck. any other suggestions?