@Test
public void testGetInfusionRateCalculationData1()
{

  //single infusion ingredient (MEDICATION), normal infusion
  final ConstantComplexTherapyDto therapy = new ConstantComplexTherapyDto();
  therapy.setContinuousInfusion(false);
  final InfusionIngredientDto ingredient = new InfusionIngredientDto();
  therapy.getIngredientsList().add(ingredient);
  ingredient.setQuantityUnit("mg");
  ingredient.setQuantity(10.0);
  ingredient.setQuantityDenominator(5.0);
  final MedicationDto medication = new MedicationDto();
  ingredient.setMedication(medication);
  medication.setMedicationType(MedicationTypeEnum.MEDICATION);
  final InfusionRateCalculationDto data = medicationsBo.getInfusionRateCalculationData(therapy);
  assertEquals(new Double(10.0), data.getQuantity());
  assertEquals("mg", data.getQuantityUnit());
  assertEquals(new Double(5.0), data.getQuantityDenominator());
}