RxNetworkInfo { public static Builder builder() { return new Builder(); } @VisibleForTesting  RxNetworkInfo(); @VisibleForTesting  RxNetworkInfo(@NonNull Builder builder); static RxNetworkInfo create(); static RxNetworkInfo create(@NonNull NetworkInfo networkInfo); static RxNetworkInfo create(@NonNull Context context); @RequiresApi(LOLLIPOP) static RxNetworkInfo create(@NonNull Network network,
      @NonNull ConnectivityManager connectivityManager); static Builder builder(); NetworkInfo.State getState(); NetworkInfo.DetailedState getDetailedState(); int getType(); int getSubType(); boolean isAvailable(); boolean isFailover(); boolean isRoaming(); String getTypeName(); String getSubTypeName(); boolean isConnectedOrConnecting(); boolean isConnected(); String getReason(); String getExtraInfo(); @RequiresApi(LOLLIPOP) NetworkCapabilities getNetworkCapabilities(); @Override int hashCode(); @SuppressWarnings("ConstantConditions") @Override boolean equals(Object o); @SuppressLint("NewApi") @Override String toString();  }
@Test public void shouldBeEqual_whenCreatedFromSameBuilder() { final RxNetworkInfo rxni = builder().build(); final RxNetworkInfo rxni2 = builder().build(); assertEqual(rxni, rxni2); }