Efficient Strategies for Automating Unit Testing in Java