@Test
    public void testDecryptRequestAndEncryptResponseField() throws Exception {
        setupCryptorRequest("data", "decrypt", MapTypeEnum.FIELD.getMapType());
        setupCryptorResponse("userName", "encrypt", MapTypeEnum.FIELD.getMapType());

        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("userId", TEST_USER_ID);
        jsonObject.addProperty("userName", TEST_USER_NAME);
        JsonObject request = new JsonObject();
        request.addProperty("data", RSA_STRATEGY.encrypt(RSA_PUBLIC_KEY, jsonObject.toString()));
        String userName = HttpHelper.INSTANCE.postGateway(TEST_PATH, request, String.class);
        byte[] inputByte = Base64.getMimeDecoder().decode(userName);
        assertThat(RSA_STRATEGY.decrypt(RSA_PRIVATE_KEY, inputByte), is(TEST_USER_NAME));

        cleanCryptorRequest();
        cleanCryptorResponse();
    }
The integrated test for combination plugins about request and response.
shenyu-integrated-test/shenyu-integrated-test-combination/src/test/java/org/apache/shenyu/integrated/test/combination/RequestAndResponsePluginTest.java