@Test
    public void testToObjectMapWithClazz() {
        Map<String, TestObject> map = ImmutableMap.of("data", generateTestObject());

        String json = "{\"data\":" + EXPECTED_JSON + "}";

        Map<String, TestObject> parseMap = GsonUtils.getInstance().toObjectMap(json, TestObject.class);
        map.forEach((key, value) -> {
            assertTrue(parseMap.containsKey(key));
            assertEquals(value, parseMap.get(key));
        });

        assertNull(GsonUtils.getInstance().toObjectMap(null, String.class));
    }
test method {@link GsonUtils#toObjectMap(java.lang.String, java.lang.Class)}.
shenyu-common/src/test/java/org/apache/shenyu/common/utils/GsonUtilsTest.java