I want to write an integration test for my service and am trying to set up an in-memory mongodb instance to write and read from within the integration tests.
I have found the exact same question for JS, found here, where the answer suggests to use MongoMemoryServer available in JS.
Is there an equivalent library or construct in the MongoJavaDriver?