@ExceptionHandler(ConstraintViolationException.class)
    protected ShenyuAdminResult handleConstraintViolationException(final ConstraintViolationException e) {
        LOG.warn("constraint violation exception", e);
        Set<ConstraintViolation<?>> violations = e.getConstraintViolations();
        return ShenyuAdminResult.error(violations.stream()
                .map(v -> v.getPropertyPath().toString().concat(": ").concat(v.getMessage()))
                .collect(Collectors.joining("| ")));
    }
@Test
    public void testHandleConstraintViolationException() {
        ConstraintViolationException exception = spy(new ConstraintViolationException(Collections.emptySet()));
        Set<ConstraintViolation<?>> violations = spy(Collections.emptySet());
        when(exception.getConstraintViolations()).thenReturn(violations);
        ShenyuAdminResult result = exceptionHandlersUnderTest.handleConstraintViolationException(exception);
        Assertions.assertEquals(result.getCode().intValue(), CommonErrorCode.ERROR);
    }