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

  final Set<Long> medicationCodes = new HashSet<>();
  medicationCodes.add(1L);
  medicationCodes.add(2L);
  medicationCodes.add(3L);
  medicationCodes.add(4L);
  final Map<Long, Pair<String, Integer>> resultMapPek =
      medicationsDao.getCustomGroupNameSortOrderMap("1", medicationCodes);
  assertEquals(1L, (long)resultMapPek.size());
  assertEquals("Paracetamol Kardio Hosp", resultMapPek.get(1L).getFirst());
  assertEquals(Integer.valueOf(2), resultMapPek.get(1L).getSecond());
  final Map<Long, Pair<String, Integer>> resultMapKookit =
      medicationsDao.getCustomGroupNameSortOrderMap("2", medicationCodes);
  assertEquals(4L, (long)resultMapKookit.size());
  assertEquals("Paracetamol KOOKIT EIT", resultMapKookit.get(1L).getFirst());
  assertEquals(Integer.valueOf(1), resultMapKookit.get(1L).getSecond());
}