@Test
public void shouldRestoreServerUrlWhenLoading() {

    doCallRealMethod().when(loginActivity).toggleBaseUrl();
    when(loginActivity.getContext().getSharedPreferences().getString(SERVER_URL_PREF, null)).thenReturn("rapidftr.com:1234");
    loginActivity.toggleBaseUrl();
    verify(loginActivity.urlView).setText("rapidftr.com:1234");
}