### Question:
AccountNrValidator extends BankValidator { @Override public ValidationResult validate(String input) { int length; String input2; switch (countryCode) { case "GB": length = 8; if (isNumberWithFixedLength(input, length)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.accountNr", length)); case "US": if (isNumberInRange(input, 4, 17)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.accountNr", "4 - 17")); case "BR": if (isStringInRange(input, 1, 20)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.accountNrChars", "1 - 20")); case "NZ": input2 = input != null ? input.replaceAll("-", "") : null; if (isNumberInRange(input2, 15, 16)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.accountNrFormat", "03-1587-0050000-00")); case "AU": if (isNumberInRange(input, 4, 10)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.accountNr", "4 - 10")); case "CA": if (isNumberInRange(input, 7, 12)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.accountNr", "7 - 12")); case "MX": length = 18; if (isNumberWithFixedLength(input, length)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.sortCodeNumber", getLabel(), length)); case "HK": input2 = input != null ? input.replaceAll("-", "") : null; if (isNumberInRange(input2, 9, 12)) return super.validate(input); else return new ValidationResult(false, Res.get("validation.accountNrFormat", "005-231289-112")); case "NO": if (input != null) { length = 11; input2 = StringUtils.remove(input, " "); input2 = StringUtils.remove(input2, "."); if (input2.length() != length || !StringUtils.isNumeric(input2)) return new ValidationResult(false, Res.get("validation.sortCodeNumber", getLabel(), length)); int lastDigit = Character.getNumericValue(input2.charAt(input2.length() - 1)); if (getMod11ControlDigit(input2) != lastDigit) return new ValidationResult(false, "Kontonummer har feil sjekksum"); else return super.validate(input); } else { return super.validate(null); } default: return super.validate(input); } } AccountNrValidator(String countryCode); @Override ValidationResult validate(String input);  }### Answer:
@Test public void testValidationForArgentina() { AccountNrValidator validator = new AccountNrValidator("AR"); assertTrue(validator.validate("4009041813520").isValid); assertTrue(validator.validate("035-005198/5").isValid); }