def METHOD_NAME(self, validate_administrator, uninstall):
    self.system.return_value = 'Windows'
    self.uninstall._run_main(self.args, self.globals)
    validate_administrator.assert_called_with()
    uninstall.assert_called_with(self.args)
    self.remove.assert_called_with(
        r'C:\ProgramData\Amazon\CodeDeploy\conf.onpremises.yml'
    )