Use OS.stub in multiple contexts