Look into solutions to implement possible CSV generators to test the populateDB methods.
This is an integration test that will test the connection from local machine (or at least where the data resides) and the database. But overall it will be a test of the output of populateDB which is not possible without connecting to mongoDB.