Java & TDD practice