public void Should_cache_the_properties_for_better_performance() { var message = new NonSecureMessage(); mutator.MutateIncoming(message); MessageConventionExtensions.IsEncryptedPropertyAction = property => { throw new Exception("Should be cached"); }; mutator.MutateIncoming(message); }