public void Should_return_matching_handler() { var handler = handlerCollection.GetHandler <MyMessage>(); handler(new Message <MyMessage>(new MyMessage()), null); myMessageHandlerExecuted.ShouldBeTrue(); }