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

  final List<Long> routeIds = Collections.singletonList(11L);
  final Set<Long> medicationIds = medicationsDao.findSimilarMedicationsIds(
      1L,
      routeIds,
      new DateTime(2013, 1, 1, 10, 15));
  assertEquals(4L, (long)medicationIds.size());
  assertTrue(medicationIds.contains(1L));
  assertTrue(medicationIds.contains(2L));
  assertTrue(medicationIds.contains(4L));
  assertTrue(medicationIds.contains(7L));
}