def setup_loader_modules(self):
        self.file_managed_mock = MagicMock()
        self.file_managed_mock.return_value = {"changes": True}

        return {
            x509: {
                "__opts__": {"fips_mode": True},
                "__salt__": {
                    "x509.get_pem_entry": x509_mod.get_pem_entry,
                    "x509.get_private_key_size": x509_mod.get_private_key_size,
                },
                "__states__": {"file.managed": self.file_managed_mock},
            }
        }