@Operation(summary = "enableProjectPreference", description = "UPDATE_PROJECT_PREFERENCE_STATE_NOTES")
    @Parameters({
            @Parameter(name = "state", description = "PROJECT_PREFERENCES_STATE", schema = @Schema(implementation = String.class)),
    })
    @PostMapping
    @ResponseStatus(HttpStatus.OK)
    @ApiException(UPDATE_PROJECT_PREFERENCE_STATE_ERROR)
    public Result enableProjectPreference(@Parameter(hidden = true) @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                                          @Parameter(name = "projectCode", description = "PROJECT_CODE", required = true) @PathVariable long projectCode,
                                          @RequestParam(value = "state", required = true) int state) {
        return projectPreferenceService.enableProjectPreference(loginUser, projectCode, state);
    }
@Test
    public void testEnableProjectPreference() {
        User loginUser = getGeneralUser();

        Mockito.when(
                projectPreferenceService.enableProjectPreference(Mockito.any(), Mockito.anyLong(), Mockito.anyInt()))
                .thenReturn(getSuccessResult());
        Result result = projectPreferenceController.enableProjectPreference(loginUser, 1, 1);
        Assertions.assertEquals(Status.SUCCESS.getCode(), result.getCode());
    }