@Test
public void compareSameWarningTypeDifferentSeverity2()
{

  final Comparator<MedicationsWarningDto> comparator = therapyWarningsProvider.getMedicationsWarningDtoComparator();
  final MedicationsWarningDto o1 = getMedicationsWarningDto(WarningType.DUPLICATE, WarningSeverity.LOW);
  final MedicationsWarningDto o2 = getMedicationsWarningDto(WarningType.DUPLICATE, WarningSeverity.HIGH);
  final int compare = Objects.compare(o1, o2, comparator);
  final int reverseCompare = Objects.compare(o2, o1, comparator);
  assertTrue(compare > 0);
  assertEquals(0, compare + reverseCompare);
}