def METHOD_NAME(self):
    """Test the chain."""
    for plugin in manager.ChainPluginsManager.get_plugins(None):
        manager.ChainPluginsManager.deregister_plugin(plugin)
    manager.ChainPluginsManager.register_plugin(FakeChainPlugin)
    analyzer = FakeAnalyzer("test_index", sketch_id=1)
    analyzer.datastore.client = mock.Mock()
    plugins = getattr(analyzer, "_chain_plugins")
    self.assertEqual(len(plugins), 1)
    plugin = plugins[0]
    self.assertIsInstance(plugin, interface.BaseChainPlugin)
    analyzer_result = analyzer.run()
    expected_result = (
        "3 base events annotated with a chain UUID for 3 chains "
        "for a total of 9 events. [fake_chain] 9"
    )
    self.assertEqual(analyzer_result, expected_result)
    link_emoji = emojis.get_emoji("LINK")
    for event in plugin.ALL_EVENTS:
        attributes = event.attributes
        chains = attributes.get("chains", [])
        for event_chain in chains:
            plugin = event_chain.get("plugin", "")
            self.assertEqual(plugin, "fake_chain")
        event_emojis = event.emojis
        self.assertEqual(len(event_emojis), 1)
        self.assertEqual(event_emojis[0], link_emoji)