@Test
void dateFieldFromJavaScript() {    // JS always encodes Date type into ISO format

    TestBean bean = JSON.fromJSON(TestBean.class, "{\"date\": \"2018-05-10T05:42:09.776Z\", \"dateTime\": \"2018-05-10T05:42:09.776Z\", \"zonedDateTime\": \"2018-05-10T05:42:09.776Z\"}");
    assertThat(bean.dateField).isEqualTo("2018-05-10");
    assertThat(bean.dateTimeField).isEqualTo("2018-05-10T05:42:09.776");
    assertThat(bean.zonedDateTimeField).isEqualTo("2018-05-10T05:42:09.776Z");
}