using a test double for ouput (step definition 'Then')