public static <T> T toObj(byte[] json, Class<T> cls) {
        try {
            return mapper.readValue(json, cls);
        } catch (Exception e) {
            throw new NacosDeserializationException(cls, e);
        }
    }
@Test
    void testToObjFromBytes() {
        String json = "{\"code\":0,\"data\":{\"string\":\"你好，中国！\",\"integer\":999}}";
        
        RestResult<Map<String, Object>> restResult = JacksonUtils.toObj(json, RestResult.class);
        assertEquals(0, restResult.getCode());
        assertEquals("你好，中国！", restResult.getData().get("string"));
        assertEquals(999, restResult.getData().get("integer"));
        
        restResult = JacksonUtils.toObj(json, new TypeReference<RestResult<Map<String, Object>>>() {
        });
        assertEquals(0, restResult.getCode());
        assertEquals("你好，中国！", restResult.getData().get("string"));
        assertEquals(999, restResult.getData().get("integer"));
    }