I wanted to abstract away throwing the error as much as possible, make it more convenient in other cases if the complexity of the class increases, and more generic -- maybe too much here. 

It is possible that `expectFactory` is doing too much by also formatting the error message.

If more are down for the change, I'll revert to using `sprintf`.