@Test
public void should_return_is_not_online_when_network_is_null() throws Exception {

    when(connectivityManager.getActiveNetworkInfo()).thenReturn(null);
    assertThat("Should return false", loginService.isOnline(), is(false));
}