@Test
@DatabaseSetup("HibernateMedicationsDaoTest.testGetDoseForms.xml")
public void testGetDoseForms()
{

  final List<DoseFormDto> doseForms = medicationsDao.getDoseForms(new DateTime(2013, 10, 28, 12, 0, 0));
  assertEquals(3L, (long)doseForms.size());
  assertEquals("1", doseForms.get(0).getCode());
  assertEquals("Pill", doseForms.get(0).getName());
  assertEquals(DoseFormType.TBL, doseForms.get(0).getDoseFormType());
  assertEquals(MedicationOrderFormType.SIMPLE, doseForms.get(0).getMedicationOrderFormType());
  assertEquals("2", doseForms.get(1).getCode());
  assertEquals("Suppository", doseForms.get(1).getName());
  assertEquals(DoseFormType.SUPPOSITORY, doseForms.get(1).getDoseFormType());
  assertEquals(MedicationOrderFormType.SIMPLE, doseForms.get(1).getMedicationOrderFormType());
  assertEquals("3", doseForms.get(2).getCode());
  assertEquals("Syrup", doseForms.get(2).getName());
  assertNull(doseForms.get(2).getDoseFormType());
  assertEquals(MedicationOrderFormType.SIMPLE, doseForms.get(2).getMedicationOrderFormType());
}