I am developing a project that uses Spring Data and MongoDB to manage the persistence layer. I came across the need to populate some MongoDB collections with data that my integration and unit tests should manipulate. Currently I am using TestNG (and Spring Test) for testing.
Is there a tool like DbUnit that works with MongoDB?
Basically I want that such tool can read documents from an xml file and write such documents in a MongoDB collection.
Or am I missing something obvious, like a best practice for this kind of needs?