How to stub this, that is the question