How can I test another locale for a site?

There are some links that should redirect users according to their locale. The question is how this can be tested?