def METHOD_NAME(self):
    self.host = Host(name="fake", address="10.17.22.23", metadata={}, node=None)
    self.binaries = {}
    self.all_node_ips = ["10.17.22.22", "10.17.22.23"]
    self.test_execution_root = "fake_root"
    self.node_id = "abdefg"
    self.cluster_name = "my-cluster"
    self.executor = Mock()
    self.preparer = Mock()
    self.preparer2 = Mock()
    self.provision_config_instance = ProvisionConfigInstance(
        names="defaults",
        root_path="fake",
        config_paths=["/tmp"],
        variables={
            "test_execution_root": self.test_execution_root,
            "cluster_name": self.cluster_name,
            "node": {
                "port": "9200"
            },
            "preserve_install": False
        }
    )
    self.installer = BareInstaller(self.provision_config_instance, self.executor, self.preparer)
    self.installer.config_applier = Mock()
    self.installer.java_home_resolver = Mock()
    self.preparer.prepare.return_value = "fake node"
    self.preparer.get_config_vars.return_value = {"fake": "config"}
    self.preparer.get_config_paths.return_value = ["/tmp"]
    self.preparer2.prepare.return_value = "second node"
    self.preparer2.get_config_vars.return_value = {"new": "var"}
    self.preparer2.get_config_paths.return_value = ["/fake"]
    self.installer.java_home_resolver.resolve_java_home.return_value = (None, "/path/to/java/home")