@Test
public void preferencesUrlWithToken_ShouldReturnUrlWithTheConfiguredLocale() {

    when(Context.getLanguage(context)).thenReturn("my_locale");
    assertThat(UrlHelper.preferencesUrl(context, TOKEN)).contains("locale=my_locale");
}