code: public ExecuteSQLQueryBuilder validateScript(Resource scriptResource, String type, Charset charset) {
          ScriptValidationContext scriptValidationContext = new ScriptValidationContext(type);
          try {
              scriptValidationContext.setValidationScript(FileUtils.readToString(scriptResource, charset));
          } catch (IOException e) {
              throw new CitrusRuntimeException("Failed to read script resource", e);
          }
          action.setScriptValidationContext(scriptValidationContext);
          return this;
      }
docs: Validate SQL result set via validation script, for instance Groovy.
  @param scriptResource
  @param type
  @param charset