final String redirectUri = "redirectUri";
final String accessTokenId = "accessTokenId";
this.processor.setRedirectUri(redirectUri);
OAuth2Adapter adapter = Mockito.mock(OAuth2Adapter.class);
Mockito.when(this.manager.createAdapter(verifier)).thenReturn(adapter);
Mockito.when(this.manager.getDefaultUnauthorizedConnector().getName()).thenReturn(accessTokenId);
Mockito.when(adapter.getAccessTokenUrl()).thenReturn(accessTokenUrl);
Assert.assertSame(this.restoredEvent, this.processor.process(event));
Mockito.verify(adapter).fetchAccessToken(redirectUri);
Mockito.verify(this.manager.getAccessTokenPoolFactory()).passivateObject(accessTokenId, adapter);