NumberRange.getMaximum returns the minimum, not the maximum. Test added to verify this, and then the bug fixed. SUBMITTED-BY: Kasper R�nning