@Test
public void compareSameMedicationsWarnings()
{

  final Comparator<MedicationsWarningDto> comparator = therapyWarningsProvider.getMedicationsWarningDtoComparator();
  final MedicationsWarningDto o1 = getMedicationsWarningDto(WarningType.ALLERGY, WarningSeverity.SIGNIFICANT);
  final MedicationsWarningDto o2 = getMedicationsWarningDto(WarningType.ALLERGY, WarningSeverity.SIGNIFICANT);
  final int compare = Objects.compare(o1, o2, comparator);
  assertEquals(0, compare);
}