A unit test is a process that verifies that a single function or procedure performs as expected. A test stub is an auxiliary function that feeds arguments to the function or procedure being tested.