@Test
public void testGetTherapyDurationDisplay()
{

  final Locale locale = new Locale("sl");
  ConstantSimpleTherapyDto therapy = new ConstantSimpleTherapyDto();
  therapy.setStart(new DateTime(2016, 12, 10, 8, 0));
  therapy.setEnd(new DateTime(2016, 12, 15, 16, 0));
  assertEquals("<span class='TherapyDuration'><br>" +
                   "<span class='DurationLabel TextLabel MedicationLabel'>Trajanje </span>" +
                   "<span class='Duration TextData'>5 dni, 8 ur </span></span>",
               therapyDisplayProvider.getTherapyDurationDisplay(therapy, locale));
  therapy.setEnd(new DateTime(2016, 12, 11, 9, 1));
  assertEquals("<span class='TherapyDuration'><br>" +
                   "<span class='DurationLabel TextLabel MedicationLabel'>Trajanje </span>" +
                   "<span class='Duration TextData'>1 dan, 1 ura, 1 min </span></span>",
               therapyDisplayProvider.getTherapyDurationDisplay(therapy, locale));
  therapy.setEnd(new DateTime(2016, 12, 10, 10, 15));
  assertEquals("<span class='TherapyDuration'><br>" +
                   "<span class='DurationLabel TextLabel MedicationLabel'>Trajanje </span>" +
                   "<span class='Duration TextData'>2 ur, 15 min </span></span>",
               therapyDisplayProvider.getTherapyDurationDisplay(therapy, locale));
  therapy.setEnd(new DateTime(2016, 12, 10, 8, 15));
  assertEquals("<span class='TherapyDuration'><br>" +
                   "<span class='DurationLabel TextLabel MedicationLabel'>Trajanje </span>" +
                   "<span class='Duration TextData'>15 min </span></span>",
               therapyDisplayProvider.getTherapyDurationDisplay(therapy, locale));
  therapy.setEnd(new DateTime(2016, 12, 25, 6, 0));
  assertEquals("<span class='TherapyDuration'><br>" +
                   "<span class='DurationLabel TextLabel MedicationLabel'>Trajanje </span>" +
                   "<span class='Duration TextData'>2 tednov, 22 ur </span></span>",
               therapyDisplayProvider.getTherapyDurationDisplay(therapy, locale));
  therapy.setEnd(new DateTime(2016, 12, 11, 8, 0));
  assertEquals("<span class='TherapyDuration'><br>" +
                   "<span class='DurationLabel TextLabel MedicationLabel'>Trajanje </span>" +
                   "<span class='Duration TextData'>1 dan </span></span>",
               therapyDisplayProvider.getTherapyDurationDisplay(therapy, locale));
}