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

  final List<MedicationRouteDto> routes = medicationsDao.getRoutes(new DateTime(2013, 10, 28, 12, 0, 0));
  assertEquals(3L, (long)routes.size());
  assertEquals("1", routes.get(0).getCode());
  assertEquals("po", routes.get(0).getName());
  assertNull(routes.get(0).getType());
  assertEquals("4", routes.get(1).getCode());
  assertEquals("ivk", routes.get(1).getName());
  assertEquals(MedicationRouteTypeEnum.IV, routes.get(1).getType());
  assertEquals("5", routes.get(2).getCode());
  assertEquals("im", routes.get(2).getName());
  assertEquals(MedicationRouteTypeEnum.IV, routes.get(2).getType());
}