@Test
void listObject() {

    List<TestBean> beans = JSON.fromJSON(Types.list(TestBean.class), "[{\"string\":\"n1\"},{\"string\":\"n2\"}]");
    assertThat(beans).hasSize(2);
    assertThat(beans.get(0).stringField).isEqualTo("n1");
    assertThat(beans.get(1).stringField).isEqualTo("n2");
}