Unit tests should be small tests (atomic), lightweight, and fast. However, an object under test might have dependencies on other objects. It might need to interact with a database, talk to a web service or a message queue. All these services might not be available during unit testing. Even if…