public static void checkTenant(String tenant) {
        if (StringUtils.isNotBlank(tenant)) {
            if (!isValid(tenant.trim())) {
                throw new IllegalArgumentException("invalid tenant");
            }
            if (tenant.length() > TENANT_MAX_LEN) {
                throw new IllegalArgumentException("too long tenant, over 128");
            }
        }
    }
@Test
    void testCheckTenant() {
        //tag invalid
        String tenant = "test!";
        try {
            ParamUtils.checkTenant(tenant);
            fail();
        } catch (IllegalArgumentException e) {
            System.out.println(e.toString());
        }
        
        //tag over length
        int tanantMaxLen = 128;
        StringBuilder tenantBuilder = new StringBuilder();
        for (int i = 0; i < tanantMaxLen + 1; i++) {
            tenantBuilder.append("t");
        }
        tenant = tenantBuilder.toString();
        try {
            ParamUtils.checkTenant(tenant);
            fail();
        } catch (IllegalArgumentException e) {
            System.out.println(e.toString());
        }
    }