How do you Test Getter and Setter Interface in Java using Mockito (Mocking)?

Usually, we unit tests the logics. An interface is without implementation details. A interface is just a binding a contract, but still, we can use Mockito to mock the …