private String normalizePath(final Cookie cookie) {
        String path = cookie.getPath();
        if (path == null) {
            path = "/";
        }
        if (!path.endsWith("/")) {
            path = path + '/';
        }
        return path;
    }
This cookie comparator ensures that multiple cookies satisfying
a common criteria are ordered in the {@link Cookie} header such
that those with more specific Path attributes precede those with
less specific.

<p>
This comparator assumes that Path attributes of two cookies
path-match a commmon request-URI. Otherwise, the result of the
comparison is undefined.
</p>


@since 4.0
ngrinder-runtime/src/main/java/org/apache/hc/client5/http/cookie/CookiePathComparator.java