shadows/framework/src/main/java/org/robolectric/shadows/ShadowConnectivityManager.java
@Implementation(minSdk = LOLLIPOP)
  protected NetworkCapabilities getNetworkCapabilities(Network network) {
    return networkCapabilitiesMap.get(network);
  }
@Implementation(minSdk = LOLLIPOP)
  protected NetworkCapabilities getNetworkCapabilities(Network network) {
    return networkCapabilitiesMap.get(network);
  }
Gets the network capabilities of a given {@link Network}.

@param network The {@link Network} object identifying the network in question.
@return The {@link android.net.NetworkCapabilities} for the network.
@see #setNetworkCapabilities(Network, NetworkCapabilities)