JUnit and refactoring