### Question:
BranchIdValidator extends BankValidator { @Override public ValidationResult validate(String input) { int length; switch (countryCode) { case "GB": length = 6; if (isNumberWithFixedLength(input, length)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.sortCodeNumber", getLabel(), length)); case "US": length = 9; if (isNumberWithFixedLength(input, length)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.sortCodeNumber", getLabel(), length)); case "BR": if (isStringInRange(input, 2, 6)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.sortCodeChars", getLabel(), "2 - 6")); case "AU": length = 6; if (isNumberWithFixedLength(input, length)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.sortCodeChars", getLabel(), length)); case "CA": length = 5; if (isNumberWithFixedLength(input, length)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.sortCodeNumber", getLabel(), length)); case "AR": length = 4; if(isNumberWithFixedLength(input, length)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.sortCodeNumber", getLabel(), length)); default: return super.validate(input); } } BranchIdValidator(String countryCode); @Override ValidationResult validate(String input);  }### Answer:
@Test public void testValidationForArgentina() { BranchIdValidator validator = new BranchIdValidator("AR"); assertTrue(validator.validate("0590").isValid); assertFalse(validator.validate("05901").isValid); }