def METHOD_NAME(self) -> None:
    conf = yaml.safe_load(
        ServerConfig().generate_config_section(
            "CONFDIR", "/data_dir_path", "che.org", True, None
        )
    )
    expected_listeners = [
        {
            "port": 8008,
            "tls": False,
            "type": "http",
            "x_forwarded": True,
            "resources": [{"names": ["client", "federation"], "compress": False}],
        }
    ]
    self.assertEqual(conf["listeners"], expected_listeners)