thread-weaver - Project Hosting on Google Code
This is a very interesting library. The example in the wiki is very helpful when learning how to use this.
Thread Weaver is a framework for writing multi-threaded unit tests in Java.
It provides mechanisms for creating breakpoints within your code, and for halting execution of a thread when a breakpoint is reached. Other threads can then run while the first thread is blocked. This allows you to write repeatable tests for that can check for race conditions and thread safety.
This is a very interesting library. The example in the wiki is very helpful when learning how to use this.