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