Unit testing is the practice of testing individual units or components of an application in order to validate that each of those units is working properly. Generally, a unit should be a small part of the application. In Java, it's often a single class. Note that there is no strict definition of "unit" here, and it is up to the developer to decide the scope of tested code for each test.