Any tool for automatically generating unit tests for Java code?
UPDATE: Primary intended use is to quickly generate unit tests for legacy code that is going to be refactored. No need to automatically keep the tests in sync with the code after automatic generation.
Almost same question was asked here, but the answer was for .NET instead of Java (Pex was the accepted answer):
http://stackoverflow.com/questions/689087/automatic-generation-of-unit-test-cases-for-net-and-java