
Implement the class we need to mock, then the class to be tested will use the overrided methods.

class ) public class MathApplicationTester Spying Thus passing ThisComponent or ThisDatabaseDocument as argument creates a new SFDocuments.Document, Base or Calc service.

when import import import import import import // attaches a runner with the test class to initialize the test data ( MockitoJUnitRunner.
