def METHOD_NAME(self):
    with open(os.path.join(self.config.config_dir,
                           ".pluginstorage.json"), "w") as fh:
        fh.write('invalid json')
    with mock.patch("certbot.plugins.storage.logger.error") as mock_log:
        with mock.patch("certbot.reverter.util"):
            corrupted = self.plugin_cls(self.config, "mockplugin")
        with pytest.raises(errors.PluginError):
            corrupted.storage.fetch("value")
        assert "is corrupted" in mock_log.call_args[0][0]