@Override
    public boolean isValid(Link link, ResourceContext context) {
        // explicitly call a method not depending on LinkResourceService
        return isValid(link);
    }
@Test
    public void testMeteredNotAllowed() {
        MeteredConstraint constraint = new MeteredConstraint(false);

        assertThat(constraint.isValid(meteredLink, resourceContext), is(false));
        assertThat(constraint.isValid(nonMeteredLink, resourceContext), is(true));
        assertThat(constraint.isValid(unAnnotatedLink, resourceContext), is(true));
    }