Automating Java Unit Tests: Strategies for Efficient and Reliable Testing