@Test
public void doesNotSerializeTransientValues() {

    NodeMapper mapper = new NodeMapper();
    HasTransient hasTransient = new HasTransient();
    hasTransient.setFoo("foo");
    hasTransient.setHi("hi");
    ObjectNode result = mapper.serialize(hasTransient).expectObjectNode();
    Node.assertEquals(result, Node.parse("{\"hi\": \"hi\"}"));
}