> I don't see why it needs to be a nested data structure? This is what we'd put in the config file.

The code under test doesn't know or care about YAML, so it seems silly for the test to care. Also, this should probably be a much simpler example given that all we're doing is asserting that it gets sent.