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 testToObject11() {
        assertEquals(Collections.singletonMap("key", "value"),
                JacksonUtils.toObj(new ByteArrayInputStream("{\"key\":\"value\"}".getBytes()),
                        TypeUtils.parameterize(Map.class, String.class, String.class)));
        assertEquals(Collections.singletonList(Collections.singletonMap("key", "value")),
                JacksonUtils.toObj(new ByteArrayInputStream("[{\"key\":\"value\"}]".getBytes()),
                        TypeUtils.parameterize(List.class, TypeUtils.parameterize(Map.class, String.class, String.class))));
    }