### Question:
Triggers { public void deleteTrigger(Trigger trigger, ACS acs) throws SQLException { if (!trigger.getChildren().isEmpty()) { throw new IllegalArgumentException( "This trigger is a composite trigger with \"child\" triggers. Remove child triggers before deleting this trigger"); } if (!acs.getUser().isUnittypeAdmin(unittype.getId())) { throw new IllegalArgumentException("Not allowed action for this user"); } int rowsDeleted = deleteTriggerImpl(trigger, acs); nameMap.remove(trigger.getName()); idMap.remove(trigger.getId()); if (trigger.getParent() != null) { trigger.getParent().removeChild(trigger); } } Triggers(Map<Integer, Trigger> idMap, Map<String, Trigger> nameMap, Unittype unittype); Unittype getUnittype(); Trigger getById(Integer id); Trigger getByName(String name); Trigger[] getTriggers(); @Override String toString(); void addOrChangeHistory(TriggerRelease history, ACS acs); TriggerRelease readLatestTriggerRelease(Trigger trigger, Date from, Date to, ACS acs); List<TriggerRelease> readTriggerReleases(
      Trigger trigger, Date from, Date to, ACS acs, Integer limit); void addEvent(TriggerEvent event, ACS acs); int deleteEvents(Date upUntil, ACS acs); int deleteEvents(Integer triggerId, Date upUntil, ACS acs); Map<String, Integer> countEventsPrUnit(Integer triggerId, Date from, Date to, ACS acs); Date getFirstEventTms(Integer triggerId, Date from, Date to, ACS acs); void addOrChangeTrigger(Trigger trigger, ACS acs); void deleteTrigger(Trigger trigger, ACS acs); List<Trigger> getTopLevelTriggers();  }### Answer:
@Test public void deleteTrigger() {}