@Test
public void testGetMedicationDailyFrequency()
{

  final DateTime start = new DateTime(2013, 3, 25, 12, 0);
  final MedicationTimingCluster medicationTiming1 =
      MedicationsTestUtils.buildMedicationTimingCluster(4L, null, null, null, start, null, null);
  final int medicationDailyFrequency1 = medicationsBo.getMedicationDailyFrequency(medicationTiming1);
  assertEquals(4L, (long)medicationDailyFrequency1);
  final MedicationTimingCluster medicationTiming2 =
      MedicationsTestUtils.buildMedicationTimingCluster(null, 8, null, null, start, null, null);
  final int medicationDailyFrequency2 = medicationsBo.getMedicationDailyFrequency(medicationTiming2);
  assertEquals(3L, (long)medicationDailyFrequency2);
  final MedicationTimingCluster medicationTiming3 =
      MedicationsTestUtils.buildMedicationTimingCluster(null, null, 1, null, start, null, null);
  final int medicationDailyFrequency3 = medicationsBo.getMedicationDailyFrequency(medicationTiming3);
  assertEquals(1L, (long)medicationDailyFrequency3);
  final MedicationTimingCluster medicationTiming4 =
      MedicationsTestUtils.buildMedicationTimingCluster(
          null, null, null, DosingFrequencyTypeEnum.MORNING, start, null, null);
  final int medicationDailyFrequency4 = medicationsBo.getMedicationDailyFrequency(medicationTiming4);
  assertEquals(1L, (long)medicationDailyFrequency4);
  final MedicationTimingCluster medicationTiming5 =
      MedicationsTestUtils.buildMedicationTimingCluster(
          null, null, null, DosingFrequencyTypeEnum.EVENING, start, null, null);
  final int medicationDailyFrequency5 = medicationsBo.getMedicationDailyFrequency(medicationTiming5);
  assertEquals(1L, (long)medicationDailyFrequency5);
  final MedicationTimingCluster medicationTiming6 =
      MedicationsTestUtils.buildMedicationTimingCluster(
          null, null, null, DosingFrequencyTypeEnum.NOON, start, null, null);
  final int medicationDailyFrequency6 = medicationsBo.getMedicationDailyFrequency(medicationTiming6);
  assertEquals(1L, (long)medicationDailyFrequency6);
}