`File.stub(:exist?).with(START_SERVICE_INSTSYS_COMMAND).and_return(true)` , otherwise the test is meaningless for the reader.