Use moked unit tests for your code for ex Mockito,Jmock etc. Use OOAD principles to better design and analysis of system. Large number of lines code into refactor to methods. Share on Facebook Share Share on TwitterTweet Share on Google Plus Share Share on Pinterest Share Share on LinkedIn Share Share on Digg Share Send email Mail Print Print