@Test
public void serializesUsingToNode() {

    NodeMapper mapper = new NodeMapper();
    HasToNode value = new HasToNode();
    Node result = mapper.serialize(value);
    Node.assertEquals(result, Node.parse("{\"foo\": \"baz\"}"));
}