@Override
        public int compare(CandidateAndStep<Endpoint> o1, CandidateAndStep<Endpoint> o2) {
            final Endpoint endpoint1 = o1.candidate();
            final Endpoint endpoint2 = o2.candidate();
            if (endpoint1.equals(endpoint2) &&
                endpoint1.weight() == endpoint2.weight() &&
                o1.step() == o2.step() &&
                o1.currentWeight() == o2.currentWeight()) {
                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