kate = userManagement.createPersonAndApproveMembership(new UserManagement.PersonInfo(anyStr(), anyStr(), anyStr()), anyStr(), lab, null);
instrumentManagement.newInstrument(bob, lab, anyInstrumentModel(), new InstrumentManagement.InstrumentDetails(anyStr(), anyStr(), anyStr(), anyStr()));
}
private long experiment(long proj, String name, String description) {
final DictionaryItem type = experimentCreationHelper.experimentTypes().iterator().next();
final ExperimentCreationHelper.WorkflowTypeItem workflowType = experimentCreationHelper.workflowTypes(type.id).iterator().next();
DictionaryItem specie = experimentCreationHelper.species().iterator().next();
final long file = saveFile();
return studyManagement.newExperiment(bob, proj, lab,
new StudyManagement.ExperimentInfo(name, description, workflowType.id, specie.id), false,
new StudyManagement.Restriction(experimentCreationHelper.availableInstrumentModels(bob, null).get(0).id, Optional.<Long>absent()),
Collections.<StudyManagement.MetaFactor>emptyList(), noFactoredFile(file), new AnalysisBounds(), new ArrayList<Double>());