
The main objective of building code tests in an application is to certify what was coded, that is, to guarantee that a given piece of code does what it should do.
Senior Software Engineer
Building tests is one of the most routine tasks for a developer and normally, with frameworks like jUnit and Mockito, this task tends to be carried out without great difficulties. Despite this, there are certain validations, which tend to be more complex, such as checking calls to methods with parameters of type varargs.