This video goes through the basics of setting up JUnit test cases in Eclipse to unit test some code.
Unit tests should test individual public methods of a class. A method will have an input and an output. Given a known input, a unit test will assert an expected output.
This video also shows some basic refactoring techniques and integrating with the Java Time API.