    @Test public void setUrlErrorIfInvalid() {

        viewModel.url.set("Junk");

        viewModel.onLoginClick(null);

        assertThat(viewModel.urlError.get()).isEqualTo(ERROR_URL_INVALID);
    }