I came across this question and needed help on this.
A speaker and a listener communicate with each other. The speaker can
present emotions to the listener: smile, anger, courtesy, joke, fury, etc. The listener gives a proper
response for each communication (say something, attack, defense, ignore, etc.).
Design a UML model for this situation. Implement the design in Java and simulate it (using text output)
and write a JUnit4 test.
Briefly describe listener object's reaction rules.