@Override
    @SneakyThrows
    public <T> List<T> parseArray(String text, Class<T> clazz) {
        CollectionType collectionType = MAPPER.getTypeFactory().constructCollectionType(ArrayList.class, clazz);
        return MAPPER.readValue(text, collectionType);
    }
@Test
    public void testParseArray() {
        // normal json to array
        Assertions.assertEquals(EXPECTED_ENTITY_ARRAY, JSONUtil.parseArray(EXPECTED_ENTITY_ARRAY_JSON, Entity.class));
        // null json
        Assertions.assertEquals(Collections.emptyList(), JSONUtil.parseArray(null, Entity.class));
        // illegal json
        Assertions.assertEquals(Collections.emptyList(), JSONUtil.parseArray(" ", Entity.class));
    }