@Test
public void preferencesUrlWithToken_ShouldReturnProductionUrl_WhenTokenIsForProduction() {

    mockStatic(Context.class);
    when(Context.getApiKey()).thenReturn("skadoo");
    String expectedPrefix = "https://inapp.klarna.com/users/" + TOKEN + "/preferences";
    assertThat(UrlHelper.preferencesUrl(context, TOKEN)).startsWith(expectedPrefix);
}