@Test
public void handleCallback_SuccessfulToken() throws IOException {

	OAuthAuthenticateValidatorCallbackHandler loginCallbackHandler =  Mockito.spy(new OAuthAuthenticateValidatorCallbackHandler());
	OAuthServiceImpl oauthServiceImplSpy = Mockito.spy(new OAuthServiceImpl());
	Map<String, Object> response = new HashMap<>();
	response.put("active", true);
	response.put("jti", "");
	response.put("iat", 1);
	response.put("exp", 1);
	OAuthBearerTokenJwt jwt = new OAuthBearerTokenJwt(response, "test");
	Mockito.doReturn(oauthServiceImplSpy).when(loginCallbackHandler).getOauthService();
	Mockito.doReturn(jwt).when(oauthServiceImplSpy).validateAccessToken("test");
	OAuthBearerValidatorCallback oauthBearerTokenCallback = new OAuthBearerValidatorCallback("test");
	loginCallbackHandler.handleCallback(oauthBearerTokenCallback);
	assertEquals(jwt, oauthBearerTokenCallback.token());
}