How to unit test a method which connects to mongo, without actually connecting to mongo? How to unit test a method which connects to mongo, without actually connecting to mongo? mongodb mongodb