public static Experiment createExperimentWithRule(){
  Experiment experiment=ExperimentFactory.createExperiment();
  experiment.rule="(salary < 10000) && (state = 'VA')";
  return experiment;
}

public static Experiment createExperimentWithRule ( ) { Experiment experiment = ExperimentFactory . createExperiment ( ) ; experiment . rule = "(salary < 10000) && (state = 'VA')" ; return experiment ; }
creates a basic experiment with the required default values and the optional value rule . ( no id ! ) the values are a name , the default application , a start and end time , the sampling percentage ( 100 % ) and a a simple rule .
