shadows/framework/src/main/java/org/robolectric/shadows/ShadowServiceManager.java
@Implementation
  protected static IBinder getService(String name) {
    if (unavailableServices.contains(name)) {
      return null;
    }
    return SERVICES.get(name);
  }
@Implementation
  protected static IBinder getService(String name) {
    if (unavailableServices.contains(name)) {
      return null;
    }
    return SERVICES.get(name);
  }
Returns the binder associated with the given system service. If the given service is set to
unavailable in {@link #setServiceAvailability}, {@code null} will be returned.