Elsevier interview question

What is unit testing? How do you write junit testcases?