public static byte[] checkPassword(String passwdString) {
        if (Strings.isNullOrEmpty(passwdString)) {
            return EMPTY_PASSWORD;
        }

        byte[] passwd;
        passwdString = passwdString.toUpperCase();
        passwd = passwdString.getBytes(StandardCharsets.UTF_8);
        if (passwd.length != SCRAMBLE_LENGTH_HEX_LENGTH || passwd[0] != PVERSION41_CHAR) {
            throw ErrorReportException.report(ErrorCode.ERR_PASSWD_LENGTH, 41);
        }

        for (int i = 1; i < passwd.length; ++i) {
            if (!((passwd[i] <= '9' && passwd[i] >= '0') || passwd[i] >= 'A' && passwd[i] <= 'F')) {
                throw ErrorReportException.report(ErrorCode.ERR_PASSWD_LENGTH, 41);
            }
        }

        return passwd;
    }
@Test(expected = ErrorReportException.class)
    public void testCheckPasswdFail() {
        MysqlPassword.checkPassword("*9A6EC1164108A8D3DA3BE3F35A56F6499B6FC32");
        Assert.fail("No exception throws");
    }