For a unit test, I need to mock several dependencies. One of the dependencies is a class which implements an interface:
public class DataAccessImpl implement
It depends. If your code depends on the class and not on the interface you must mock the class to write a valid unit test.