String value2 = "test-value2";
String value3 = "test-value3";
String value4 = "test-value4";
// method findLiveDataForGroup adds prefix with resource id which is part of equals
MeasurementData expectedData1 = makeMeasurement(time1, schedule1.getId(), value1, name1);
expectedData1.setName(resource1.getId() + ":" + name1);
MeasurementData expectedData2 = makeMeasurement(time2, schedule2.getId(), value2, name2);
expectedData2.setName(resource2.getId() + ":" + name2);
MeasurementData expectedData3 = makeMeasurement(time3, schedule3.getId(), value3, name3);
expectedData3.setName(resource2.getId() + ":" + name3);
MeasurementData expectedData4 = makeMeasurement(time4, schedule2.getId(), value4, name4);
expectedData4.setName(resource2.getId() + ":" + name4);
expectedResult1 = new HashSet<MeasurementData>(1);
expectedResult1.add(expectedData1);
expectedResult2 = new HashSet<MeasurementData>(2);
expectedResult2.add(expectedData2);