@Test
public void deserializesIntoValueWithSourceLocation() {

    NodeMapper mapper = new NodeMapper();
    Map<StringNode, Node> mappings = new HashMap<>();
    mappings.put(StringNode.from("foo"), StringNode.from("foo"));
    SourceLocation sourceLocation = new SourceLocation("/abc/def");
    Node node = new ObjectNode(mappings, sourceLocation);
    HasSourceLocation hasSourceLocation = mapper.deserialize(node, HasSourceLocation.class);
    assertThat(sourceLocation, equalTo(hasSourceLocation.sourceLocation));
}