Here are the steps to generate test skeleton for existing code:
Open Eclipse, and choose the project you want to create test cases for
In the Package Explorer, select the java class you want to generate the Junit test for
Go to File -> New -> Junit Test Cases
Change the Source folder to ...