Libraries address so many different memory issues that it's difficult to compare them directly; common rubrics in the domain include garbage collection, smart Pointers, and smart containers.
Your test case will populate an input Address object, invoke the map to produce an output AddressCSV object, and then compare the resulting AddressCSV object with the expected results.