CreatePageAccessValidator extends CreateAccessValidator { @Override public String getLabel() { return getCheckAccessGranted() ? "Create Page" : "Cannot Create Page"; } CreatePageAccessValidator(Group group, Resource resource, AccessValidatorContext context, boolean checkAccessGranted,
            String templatePath); @Override ValidationResult validate(boolean simulate); @Override String getLabel();  }
@Test public void getLabel() { assertEquals("Create Page", validator.getLabel()); }