* @param name
* the alternative name
* @return the alternative
*/
private Alternative generateAlternative(String name) {
Alternative a = new Alternative(name, "Description");
a.setDiscarded(false);
ResourceDescription resourceDescription = new ResourceDescription();
a.setResourceDescription(resourceDescription);
Experiment experiment = new Experiment();
experiment.setDescription("Description");
experiment.setSettings("Settings");
experiment.setWorkflow(generateDigitalObject());
Map<SampleObject, DetailedExperimentInfo> detailedInfo = experiment.getDetailedInfo();
SampleObject sample1 = new SampleObject("Short name");
DetailedExperimentInfo experimentInfo1 = new DetailedExperimentInfo();
experimentInfo1.setSuccessful(true);
experimentInfo1.setCpr("Cpr");
experimentInfo1.setProgramOutput("Program output");
experimentInfo1.getMeasurements().put("key", new Measurement("Measure id", "Value"));
detailedInfo.put(sample1, experimentInfo1);
a.setExperiment(experiment);
return a;
}