@Test
public void testGetConflictMedicationsFromSimple()
{

  final long medication1Id = 2L;
  final String medication1Name = "medication2";
  final ConstantSimpleTherapyDto therapy = new ConstantSimpleTherapyDto();
  final MedicationDto medication = new MedicationDto();
  therapy.setMedication(medication);
  medication.setId(medication1Id);
  medication.setName(medication1Name);
  final List<MedicationRouteDto> routes = new ArrayList<>();
  therapy.setRoutes(routes);
  final MedicationRouteDto route1 = new MedicationRouteDto();
  route1.setId(1L);
  route1.setName("route1");
  routes.add(route1);
  final SetMultimap<Long, Long> medicationsWithRoutes = HashMultimap.create();
  medicationsWithRoutes.put(1L, 3L);
  final List<NamedExternalDto> conflictMedicationIds = mentalHealthAdditionalWarningsProvider.getConflictMedications(
      therapy,
      new MentalHealthAllowedMedicationsDo(medicationsWithRoutes, Collections.emptySet()));
  Assert.assertTrue(conflictMedicationIds.contains(new NamedExternalDto(String.valueOf(medication1Id), medication1Name)));
}