singleEvent
Retrieves a single event of the specified type TEvent from a list of FeatureMessage.
This method ensures that there is exactly one event of the specified type TEvent present in the invoking list. If no event of the specified type exists, or if more than one such event is found, an assertion error is thrown. The method makes use of findEvents to filter the list for events of the given type and then asserts that the resulting list contains exactly one item.
Return
The single event of type TEvent.
Throws
if there are zero or more than one event of the specified type TEvent.