Use OS.stub to stub out the methods