Testing, Testing Tools, Pbt.
and older are eligible. An eligible age returns 200 euros. public class BenefitCalculator { int calculateBenefitForAge(int age) { if (age < 0 || age > 125) throw new IllegalArgumentException(“Age is out of range [0–125]: “ + age); return age < 18 ? 0 : 200; } } If you rephrase the rules as general