public SelendroidCapabilities withMerged(SelendroidCapabilities caps) {
    SelendroidCapabilities copy = SelendroidCapabilities.copyOf(this);
    for (Map.Entry<String, Object> entry: caps.getRawCapabilities().entrySet()) {
      copy.setCapability(entry.getKey(), entry.getValue());
    }
    return copy;
  }
Returns a copy of this instance with {@code caps} merged, overwriting existing keys on
collision.
selendroid-common/src/main/java/io/selendroid/common/SelendroidCapabilities.java