### Question:
RegexUtil { public static boolean isComplexPassword(String password) { if (!isPassword(password)) return false; return password.matches("^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z`~!@#$%^&*()\\-_=+\\[\\]{};:'\"\\\\|,<.>/?]{6,16}$"); }  static boolean isIdentityNumber(String num); static boolean isCellphoneNumber(String num); static boolean isCellphoneNumber(String num, boolean virtual); static boolean isPhoneNumber(String num); static boolean isAuthCode(String num); static boolean isAuthCode(String num, int min, int max); static boolean isName(String name); static boolean isVehicleLicence(String license); static boolean isEmail(String email); static boolean isBankCard(String card); static boolean isLowerMoney(String money); static boolean isInteger(String integer, long min, long max); static boolean isPassword(String password); static boolean isComplexPassword(String password); static boolean isIpAddress(String address); static boolean isIp4Address(String address); static boolean isIp6Address(String address);  }### Answer:
@Test public void isComplexPassword() { assertFalse(RegexUtil.isComplexPassword("123456789")); assertFalse(RegexUtil.isComplexPassword("qwerQWER")); assertTrue(RegexUtil.isComplexPassword("QWER0000")); assertTrue(RegexUtil.isComplexPassword("QWER0000.~@.,;'")); }