@Test
public void deserializesWithBuilder() {

    Node traitValue = Node.parse("{\"min\": 10, \"max\": 100}");
    NodeMapper mapper = new NodeMapper();
    RangeTrait trait = mapper.deserialize(traitValue, RangeTrait.class);
    assertThat(trait.getMin().get().intValue(), equalTo(10));
    assertThat(trait.getMax().get().intValue(), equalTo(100));
}