Domanda di colloquio di Apex DMIT

How do you do unit testing? And why It's needed?