Added JUnit test example.