@ExceptionHandler(ShenyuException.class)
    protected ShenyuAdminResult handleShenyuException(final ShenyuException exception) {
        String message = Objects.isNull(exception.getCause()) ? null : exception.getCause().getMessage();
        if (!StringUtils.hasText(message)) {
            message = exception.getMessage();
        }
        LOG.error(exception.getMessage());
        return ShenyuAdminResult.error(message);
    }
@Test
    public void testServerExceptionHandlerByShenyuException() {
        ShenyuException shenyuException = new ShenyuException(new Throwable("Test shenyuException message!"));
        ShenyuAdminResult result = exceptionHandlersUnderTest.handleShenyuException(shenyuException);
        Assertions.assertEquals(result.getCode().intValue(), CommonErrorCode.ERROR);
        Assertions.assertEquals(result.getMessage(), shenyuException.getCause().getMessage());
    }