@Test
public void handleUserReadyEvent_ShouldLoadPreferencesUrl() {

    WebView webView = mock(WebView.class);
    when(preferencesActivity.getWebView()).thenReturn(webView);
    preferencesActivity.handleUserReadyEvent(null);
    verify(webView).loadUrl(UrlHelper.preferencesUrl(context, "my_token"));
}