### Question:
ListenerMap { public void triggerFor(QualityKey qualityKey) { for (QualityListener qualityListener : listenerMap.get(qualityKey)) { qualityListener.eventOccurred(); } }  void triggerFor(QualityKey qualityKey); void put(QualityKey key, QualityListener listener); void remove(QualityKey key, QualityListener listener);  }### Answer:
@Test public void triggersOnlyIfContained() throws Exception { QualityKey qualityKey = QualityKey.ForTypeAndName("unknownType", "unknownName"); listenerMap.triggerFor(qualityKey); }