private int getPathLength(final Cookie cookie) {
        final String path = cookie.getPath();
        return path != null ? path.length() : 1;
    }
This cookie comparator ensures that cookies with longer paths take precedence over
cookies with shorter path. Among cookies with equal path length cookies with ealier
creation time take precedence over cookies with later creation time

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