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