@Override
	public String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception {
		String redirect = super.resolveRedirect(requestedRedirect, client);
		if (blacklistService.isBlacklisted(redirect)) {
			// don't let it go through
			throw new InvalidRequestException("The supplied redirect_uri is not allowed on this server.");
		} else {
			// not blacklisted, passed the parent test, we're fine
			return redirect;
		}
	}
@Test(expected = InvalidRequestException.class)
	public void testResolveRedirect_blacklisted() {

		// this should fail with an error
		resolver.resolveRedirect(blacklistedUri, client);

	}