Need to mock connection to mongoDB atlas using spring beans

Hi,

I am trying to mock connection to mongoDB atlas from java spring beans. I have recently upgraded the java driver from 3.8.1 to 4.6.0. Previously we used Fongo and mongo-java-server for mocking this connection in testNG classes. But with latest versions it is not supported. Any idea on how to achieve this with latest version?