How do you approach writing unit tests, and what is your experience with testing frameworks like JUnit?