The following test should pass
public void testImmutableListOfOptionals() throws IOException {
ImmutableList<OptionalInt> list = MAPPER.readValue("[1,null,3]", new TypeReference<ImmutableList<OptionalInt>>() { });
assertEquals(3, list.size());
assertEquals(OptionalInt.of(1), list.get(0));
assertEquals(OptionalInt.empty(), list.get(1));
assertEquals(OptionalInt.of(3), list.get(2));
}
See #27