@Override
    public boolean equals(Object other) {
        if (other instanceof UrlWrapper) {
            UrlWrapper otherUrlWrapper = (UrlWrapper) other;
            return otherUrlWrapper.toUrl().equals(toUrl());
        } else {
            return false;
        }
    }