@Test
public void thatConnectionCheckNoConnectionUnavailable() {

    when(mContext.checkCallingOrSelfPermission(android.Manifest.permission.ACCESS_NETWORK_STATE)).thenReturn(PackageManager.PERMISSION_GRANTED);
    when(mConnectivityManager.getActiveNetworkInfo()).thenReturn(null);
    NetworkInfo info = mock(NetworkInfo.class);
    when(info.isAvailable()).thenReturn(false);
    when(mConnectivityManager.getActiveNetworkInfo()).thenReturn(info);
    Assert.assertFalse(HaloUtils.isNetworkConnected(mContext));
}