### Question:
ValueOptionPropertyAdapter implements PropertyAdapter<T> { @Override public final void read(ValueReader reader, T property) throws IOException { if (reader.isNull()) { absent(property); } else { doRead(reader, property); } } protected  ValueOptionPropertyAdapter(BuilderBase<?, ?> builder); @SuppressWarnings("deprecation") @Override void absent(T property); @Override final void read(ValueReader reader, T property); @Override void write(T property, ValueWriter writer); static final NullStyle DEFAULT_NULL_STYLE; }### Answer:
@Test public void read() throws Exception { IntOptionPropertyAdapter adapter = builder.build(); IntOption option = new IntOption(); adapter.read(new MockValue(100), option); assertThat(option, is(new IntOption(100))); }
@Test public void read_null() throws Exception { IntOptionPropertyAdapter adapter = builder.build(); IntOption option = new IntOption(1234); adapter.read(new MockValue(null), option); assertThat(option, is(new IntOption())); }