@Test
public void isNetworkAvailableTest_excption() {

    Mockito.when(conManagerMock.getActiveNetworkInfo()).thenReturn(null);
    Mockito.when(networkInfoMock.isAvailable()).thenReturn(true);
    Mockito.when(networkInfoMock.isConnected()).thenReturn(true);
    Assert.assertFalse(Utils.isNetworkAvailable(contextMock));
}