code: @Override
    public MutableCapabilities merge(Capabilities extraCapabilities) {
      if (extraCapabilities == null) {
        return this;
      }
  
      extraCapabilities.asMap().forEach(this::setCapability);
  
      return this;
    }
docs: Merge the extra capabilities provided into this DesiredCapabilities instance. If capabilities
  with the same name exist in this instance, they will be overridden by the values from the
  extraCapabilities object.
  
  @param extraCapabilities Additional capabilities to be added.
  @return The DesiredCapabilities instance after the merge.