@Test
    void testRegisterFailByExistName() throws Exception {
        UserRequest userInfo = UserRequest.builder()
                // Username already exists in the init sql
                .name("admin")
                .password(TEST_PWD)
                .accountType(TenantUserTypeEnum.TENANT_ADMIN.getCode())
                .validDays(88888)
                .build();

        MvcResult mvcResult = mockMvc.perform(
                post("/api/anno/register")
                        .content(JsonUtils.toJsonString(userInfo))
                        .contentType(MediaType.APPLICATION_JSON)
                        .accept(MediaType.APPLICATION_JSON))
                .andExpect(status().isOk())
                .andReturn();

        Response<Integer> resBody = getResBody(mvcResult, Integer.class);
        Assertions.assertFalse(resBody.isSuccess());
        Assertions.assertTrue(resBody.getErrMsg().contains("already exists"));
    }
It will throw many error logs, so keep it in the local test
inlong-manager/manager-web/src/test/java/org/apache/inlong/manager/web/controller/AnnoControllerTest.java