Java and TDD practice