{
this.manager = Mockito.mock(OAuth2Manager.class, Mockito.RETURNS_DEEP_STUBS);
this.event = Mockito.mock(MuleEvent.class, Mockito.RETURNS_DEEP_STUBS);
Mockito.when(this.event.getId()).thenReturn(eventId);
HttpCallback callback = this.initCallbackFactoryMock();
Mockito.when(callback.getUrl()).thenReturn("url");
this.processor = new TestAuthorizeMessageProcessor();
this.processor.setCallbackFactory(callbackFactory);
this.processor.setModuleObject(this.manager);