See below. Replace markup with sinon.stub