@Test
public void should_return_false_when_url_is_invalid() {

    assertThat(loginService.isUrlValid(null), CoreMatchers.is(false));
    assertThat(loginService.isUrlValid(""), CoreMatchers.is(false));
    assertThat(loginService.isUrlValid("http//10.23.0.1"), CoreMatchers.is(false));
    assertThat(loginService.isUrlValid("http://10.23.0"), CoreMatchers.is(false));
}