OAuthAuthenticateCallbackHandler implements AuthenticateCallbackHandler { protected OAuthService getOauthService() { return this.oauthService; } OAuthAuthenticateCallbackHandler(OAuthService oauthService, Class callBackHandlerClass); @Override void configure(Map<String, ?> configs, String saslMechanism, List<AppConfigurationEntry> jaasConfigEntries); @Override void handle(Callback[] callbacks); @Override void close();  }
@Test() public void getOauthService_ReturnsOAuthService() { OAuthService oauthService = new OAuthServiceImpl(); TestOAuthAuthenticateCallbackHandler callbackHandler = new TestOAuthAuthenticateCallbackHandler( oauthService ); assertNotNull(callbackHandler.getOauthService()); }