How do you do unit testing?

How do you do unit testing?

A typical unit test comprises three stages: It begins by initialising a small portion of an application to be tested (also known as the system under test, or SUT), then applies a stimulus to the system under test (typically by invoking a method on it), and lastly observes the behaviour.