assertTrue(props.getExperimentReferences().contains(l2));
assertEquals(2,props.getExperimentReferences().size());
//Test3: 1/4
TestbedManager manager = TestbedManagerImpl.getInstance();
Experiment exp = manager.createNewExperiment();
props.setExperimentReference(exp);
assertTrue(manager.containsExperiment(exp.getEntityID()));
assertEquals(1, props.getExperimentReferences().size());
assertTrue(props.getExperimentReferences().contains(exp.getEntityID()));
manager.removeExperiment(exp.getEntityID());
//Test3: 2/4
Experiment exp2 = manager.createNewExperiment();
props.setExperimentReference(exp2.getEntityID());
assertTrue(manager.containsExperiment(exp2.getEntityID()));
assertEquals(1, props.getExperimentReferences().size());
assertTrue(props.getExperimentReferences().contains(exp2.getEntityID()));
manager.removeExperiment(exp2.getEntityID());
//Test3: 3/4
Experiment exp3 = manager.createNewExperiment();
Experiment exp4 = manager.createNewExperiment();
Experiment[] exparray = {exp3, exp4};
props.setExperimentReferences(exparray);
assertTrue(manager.containsExperiment(exp3.getEntityID()));
assertTrue(manager.containsExperiment(exp4.getEntityID()));
assertEquals(2, props.getExperimentReferences().size());
assertTrue(props.getExperimentReferences().contains(exp3.getEntityID()));
assertTrue(props.getExperimentReferences().contains(exp4.getEntityID()));
manager.removeExperiment(exp3.getEntityID());
manager.removeExperiment(exp4.getEntityID());
//Test: 4/4
List<Long> refIDs = new Vector<Long>();
Experiment exp5 = manager.createNewExperiment();
Experiment exp6 = manager.createNewExperiment();
refIDs.add(exp5.getEntityID());
refIDs.add(exp6.getEntityID());
props.setExperimentReferences(refIDs);
assertTrue(manager.containsExperiment(exp5.getEntityID()));
assertTrue(manager.containsExperiment(exp6.getEntityID()));
assertEquals(2, props.getExperimentReferences().size());
assertTrue(props.getExperimentReferences().contains(exp5.getEntityID()));
assertTrue(props.getExperimentReferences().contains(exp6.getEntityID()));
//Test: 5
HashMap<Long,Experiment> refs = (HashMap<Long,Experiment>)props.getReferencedExperiments();
assertEquals(2, props.getReferencedExperimentIDs().size());
assertTrue(props.getReferencedExperimentIDs().contains(exp5.getEntityID()));
assertTrue(refs.get(exp5.getEntityID()).getEntityID()== exp5.getEntityID());
manager.removeExperiment(exp5.getEntityID());
manager.removeExperiment(exp6.getEntityID());
}