CalibrationTimeouts { public CalibrationTimeout getCalibrationTimeout(String key) { return getAllCalibrationTimeouts().get(key); } CalibrationTimeouts();  CalibrationTimeouts(ArrayList<CalibrationTimeout> calibrationTimeouts, String nameOfProperties, String nameOfCSV);  CalibrationTimeouts(String nameOfProperties, String nameOfCSV);  CalibrationTimeouts(ArrayList<CalibrationTimeout> calibrationTimeouts); void addCalibrationTimeout(CalibrationTimeout calibrationTimeout); CalibrationTimeout getCalibrationTimeout(String key); HashMap<String, CalibrationTimeout> getAllCalibrationTimeouts(); HashMap<String, CalibrationTimeout> getAllNonRedundantTimeouts(); void writeAllCalibrationTimeoutsToProperties(); void writeToCSV(Path csv, int numberOfDuration); void writeToCSV(); void clean();  }
@Test public void testGetCalibrationTimeout() throws Exception { CalibrationTimeout calibrationTimeout = new CalibrationTimeout("ode", "deploy", "maven", 20_000, 2_000); calibrationTimeouts.addCalibrationTimeout(calibrationTimeout); assertEquals("The keys should be equal.", calibrationTimeout, calibrationTimeouts.getCalibrationTimeout(calibrationTimeout.getCalibrationTimeoutKey())); assertEquals("The timeouts in ms should be equal.", calibrationTimeout.getTimeoutInMs(), calibrationTimeouts.getCalibrationTimeout(calibrationTimeout.getCalibrationTimeoutKey()).getTimeoutInMs()); assertEquals("The timeToRepetition in ms should be equal.", calibrationTimeout.getTimeToRepetitionInMs(), calibrationTimeouts.getCalibrationTimeout(calibrationTimeout.getCalibrationTimeoutKey()).getTimeToRepetitionInMs()); }