TDD kata in Java