SimulationRecord record = new SimulationRecord();
record.setBrightness(100.0D);
record.setTemperature(15.0D);
record.setEnergyConsumption(1400.0D);
record.setTimeStamp(System.currentTimeMillis());
ds.persist(record);
Criterion criterion = new Criterion("temperature").lessEqual("20").and(
new Criterion("brightness").lessThan("10000"));
List<SimulationRecord> storedRecords = ds.find(criterion);
Assert.assertFalse(storedRecords.isEmpty());
}