@Test
public void doesNotInfinitelySerializeSelfReferentialTypes() {

    NodeMapper mapper = new NodeMapper();
    SelfReferential value = new SelfReferential();
    value.recursive = value;
    Node result = mapper.serialize(value);
    Node.assertEquals(result, Node.parse("{\"name\": \"hi\"}"));
}