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