def METHOD_NAME():
    """Test dumping of a configuration with root settings."""
    conf = metomi.rose.config.ConfigNode({}, comments=["hello"])
    conf.set(["foo"], "foo", comments=["foo foo", "foo foo"])
    conf.set(["bar"], "bar")
    conf.set(["baz"], {})
    conf.set(["baz", "egg"], "egg")
    conf.set(["baz", "ham"], "ham")
    dumper = metomi.rose.config.ConfigDumper()
    target = StringIO()
    dumper.dump(conf, target)
    assert (
        target.getvalue()
        == """#hello