@Override
    public double cost(Link link, ResourceContext context) {
        // explicitly call a method not depending on LinkResourceService
        return cost(link);
    }
@Test
    public void testOrderCostWithDuplicates() {
        TierConstraint constraint32 = new TierConstraint(true, TierConstraint.CostType.ORDER, 3, 2, 1, 1, 2, 3);

        assertThat(constraint32.cost(link1, resourceContext), is(3.0));
        assertThat(constraint32.cost(link2, resourceContext), is(2.0));
        assertThat(constraint32.cost(link3, resourceContext), is(1.0));
    }