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 testToObject9() {
        assertNull(JacksonUtils.toObj("null".getBytes(), new TypeReference<Object>() {
        }));
        assertEquals("string", JacksonUtils.toObj("\"string\"".getBytes(), new TypeReference<String>() {
        }));
        assertEquals(new BigDecimal(30), JacksonUtils.toObj("30".getBytes(), new TypeReference<BigDecimal>() {
        }));
        assertEquals(Collections.singletonMap("key", "value"),
                JacksonUtils.toObj("{\"key\":\"value\"}".getBytes(), new TypeReference<Map<String, String>>() {
                }));
        assertEquals(Collections.singletonList(Collections.singletonMap("key", "value")),
                JacksonUtils.toObj("[{\"key\":\"value\"}]".getBytes(), new TypeReference<List<Map<String, String>>>() {
                }));
        assertEquals(new TestOfAtomicObject(), JacksonUtils.toObj("{\"aLong\":0,\"aInteger\":1,\"aBoolean\":false}".getBytes(),
                new TypeReference<TestOfAtomicObject>() {
                }));
        assertEquals(new TestOfDate(), JacksonUtils.toObj("{\"date\":1626192000000}".getBytes(), new TypeReference<TestOfDate>() {
        }));
        assertEquals(new TestOfAccessModifier(),
                JacksonUtils.toObj("{\"publicAccessModifier\":\"public\"}".getBytes(), new TypeReference<TestOfAccessModifier>() {
                }));
        assertEquals(new TestOfGetter(),
                JacksonUtils.toObj("{\"value\":\"value\",\"key\":\"key\"}".getBytes(), new TypeReference<TestOfGetter>() {
                }));
        assertEquals(new TestOfAnnotationSub(), JacksonUtils.toObj(
                ("{\"@type\":\"JacksonUtilsTest$TestOfAnnotationSub\",\"date\":\"2021-07-14\","
                        + "\"subField\":\"subField\",\"camelCase\":\"value\"}").getBytes(),
                new TypeReference<TestOfAnnotation>() {
                }));
    }