@Operation(summary = "createTenant", description = "CREATE_TENANT_NOTES")
    @Parameters({
            @Parameter(name = "tenantCode", description = "TENANT_CODE", required = true, schema = @Schema(implementation = String.class)),
            @Parameter(name = "queueId", description = "QUEUE_ID", required = true, schema = @Schema(implementation = int.class, example = "100")),
            @Parameter(name = "description", description = "TENANT_DESC", schema = @Schema(implementation = String.class))
    })
    @PostMapping()
    @ResponseStatus(HttpStatus.CREATED)
    @ApiException(CREATE_TENANT_ERROR)
    public Result<Tenant> createTenant(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                                       @RequestParam(value = "tenantCode") String tenantCode,
                                       @RequestParam(value = "queueId") int queueId,
                                       @RequestParam(value = "description", required = false) String description) throws Exception {

        Tenant tenant = tenantService.createTenant(loginUser, tenantCode, queueId, description);
        return Result.success(tenant);
    }
@Test
    public void testCreateTenant() throws Exception {
        mockedStaticPropertyUtils = Mockito.mockStatic(PropertyUtils.class);

        MultiValueMap<String, String> paramsMap = new LinkedMultiValueMap<>();
        paramsMap.add("tenantCode", "hayden");
        paramsMap.add("queueId", "1");
        paramsMap.add("description", "tenant description");

        MvcResult mvcResult = mockMvc.perform(post("/tenants")
                .header(SESSION_ID, sessionId)
                .params(paramsMap))
                .andExpect(content().contentType(MediaType.APPLICATION_JSON))
                .andReturn();

        Result result = JSONUtils.parseObject(mvcResult.getResponse().getContentAsString(), Result.class);
        Assertions.assertEquals(Status.SUCCESS.getCode(), result.getCode().intValue());
        logger.info(mvcResult.getResponse().getContentAsString());

        mockedStaticPropertyUtils.close();
    }