@Test
    public void testToJson() {
        TestObject testObject = generateTestObject();
        JsonElement expectedJson = JsonParser.parseString(EXPECTED_JSON);
        JsonElement objectJson = JsonParser.parseString(GsonUtils.getInstance().toJson(testObject));

        assertEquals(expectedJson, objectJson);
    }
test method about {@link GsonUtils#toJson(java.lang.Object)}.
shenyu-common/src/test/java/org/apache/shenyu/common/utils/GsonUtilsTest.java