A AssertableSubscriber is a variety of Subscriber that you can use for unit testing, to perform assertions or inspect received events.
AssertableSubscriber
Subscriber