record.setTemperature(42.0D);
record.setEnergyConsumption(42.0D);
long timeStamp = System.currentTimeMillis();
record.setTimeStamp(timeStamp);
ds.persist(record);
Criterion criterion = new Criterion("timestamp").equal(String.valueOf(timeStamp));
List<SimulationRecord> storedRecords = ds.find(criterion);
Assert.assertFalse(storedRecords.isEmpty());
record = storedRecords.get(0);
ds.delete(record);
storedRecords = ds.find(criterion);