Mocks the print stream to assert the display message