@Test
public void isNetworkAvailableTest() {

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