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

  final TherapyTemplatesDto templatesDto =
      medicationsDao.getTherapyTemplates("3", "2", TherapyTemplateModeEnum.INPATIENT, null, null, null, new Locale("en"));
  assertEquals(2L, (long)templatesDto.getUserTemplates().size());
  assertEquals(0L, (long)templatesDto.getOrganizationTemplates().size());
  assertEquals(1L, (long)templatesDto.getPatientTemplates().size());
  final TherapyTemplateDto patientTemplate = templatesDto.getPatientTemplates().get(0);
  assertEquals(TherapyTemplateTypeEnum.PATIENT, patientTemplate.getType());
  assertEquals("DDD", patientTemplate.getName());
  assertNull(patientTemplate.getUserId());
  assertEquals("3", patientTemplate.getPatientId());
  assertEquals(1L, (long)patientTemplate.getTemplateElements().size());
  assertTrue(patientTemplate.getTemplateElements().get(0).isCompleted());
}