Added a new test illustrating how to use Java Threads.