@Override
        public int compare(Endpoint o1, Endpoint o2) {
            if (o1.equals(o2) && o1.weight() == o2.weight()) {
                return 0;
            }
            return -1;
        }
A Comparator which includes the weight of an endpoint to compare.
core/src/test/java/com/linecorp/armeria/common/loadbalancer/RampingUpLoadBalancerTest.java