TestContainers is a great tool if you want to run integration tests and require a database. They even have support for MongoDB. This MongoDB support works for simple use cases. But what if you want to run MongoDB with username and password? Unfortunately,…