@Test
public void doesNotSerializeSourceLocation() {

    NodeMapper mapper = new NodeMapper();
    HasSourceLocation hs = new HasSourceLocation();
    hs.setSourceLocation(new SourceLocation("/foo/baz"));
    hs.setFoo("hi");
    Node result = mapper.serialize(hs);
    assertThat(result.expectObjectNode().getStringMap(), hasKey("foo"));
    assertThat(result.expectObjectNode().getStringMap(), not(hasKey("sourceLocation")));
}