@Test
public void shouldReplaceFragmentOnValidUrl() {

    loginActivity.onValidUrl("http://myblog.ghost.org/");
    assertThat(loginActivity.getSupportFragmentManager().findFragmentById(R.id.container),
            instanceOf(LoginFragment.class));
}