@Test
void fromJSONWithOptional() throws IOException {

    var bean = new TestBean();
    bean.intField = 3;
    @SuppressWarnings("unchecked")
    var parsedBean = (Optional<TestBean>) reader.fromJSON(Types.optional(TestBean.class), Strings.bytes(JSON.toJSON(bean)));
    assertThat(parsedBean).get().usingRecursiveComparison().isEqualTo(bean);
}