### Question:
ProviderSignInController implements InitializingBean { public void setApplicationUrl(String applicationUrl) { this.applicationUrl = applicationUrl; } @Inject  ProviderSignInController(ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository usersConnectionRepository, SignInAdapter signInAdapter); void setSignInInterceptors(List<ProviderSignInInterceptor<?>> interceptors); void setSignInUrl(String signInUrl); void setSignUpUrl(String signUpUrl); void setPostSignInUrl(String postSignInUrl); void setApplicationUrl(String applicationUrl); void setSessionStrategy(SessionStrategy sessionStrategy); void addSignInInterceptor(ProviderSignInInterceptor<?> interceptor); @RequestMapping(value="/{providerId}", method=RequestMethod.POST) RedirectView signIn(@PathVariable String providerId, NativeWebRequest request); @RequestMapping(value="/{providerId}", method=RequestMethod.GET, params="oauth_token") RedirectView oauth1Callback(@PathVariable String providerId, NativeWebRequest request); @RequestMapping(value="/{providerId}", method=RequestMethod.GET, params="code") RedirectView oauth2Callback(@PathVariable String providerId, @RequestParam("code") String code, NativeWebRequest request); @RequestMapping(value="/{providerId}", method=RequestMethod.GET, params="error") RedirectView oauth2ErrorCallback(@PathVariable String providerId,
			@RequestParam("error") String error,
			@RequestParam(value="error_description", required=false) String errorDescription,
			@RequestParam(value="error_uri", required=false) String errorUri,
			NativeWebRequest request); @RequestMapping(value="/{providerId}", method=RequestMethod.GET) RedirectView canceledAuthorizationCallback(); void afterPropertiesSet();  }### Answer:
@Test public void constructor() { ConnectionFactoryRegistry connectionFactoryLocator = new ConnectionFactoryRegistry(); ConnectionFactory<TestApi1> connectionFactory1 = new StubOAuth1ConnectionFactory("clientId", "clientSecret"); connectionFactoryLocator.addConnectionFactory(connectionFactory1); StubUsersConnectionRepository usersConnectionRepository = new StubUsersConnectionRepository(); usersConnectionRepository.createConnectionRepository("habuma").addConnection(connectionFactory1.createConnection( new ConnectionData("oauth1Provider", "provider1User1", null, null, null, null, null, null, null))); ProviderSignInController providerSignInController = new ProviderSignInController(connectionFactoryLocator, usersConnectionRepository, null); providerSignInController.setApplicationUrl("my.url"); }