@Test
public void testGetType_else() {

    Connectivity connectivity = new Connectivity(mContext);
    when(mConnectivityManager.getActiveNetworkInfo()).thenReturn(mNetworkInfo);
    when(mNetworkInfo.getType()).thenReturn(ConnectivityManager.TYPE_WIMAX);
    assertEquals(Connectivity.Type.MOBILE, connectivity.getType());
    verify(mConnectivityManager).getActiveNetworkInfo();
}