@Test
public void deserializesIntoExactTypes() {

    NodeMapper mapper = new NodeMapper();
    assertThat(mapper.deserialize(Node.from("hi"), StringNode.class), equalTo(Node.from("hi")));
    assertThat(mapper.deserialize(Node.from(true), BooleanNode.class), equalTo(Node.from(true)));
}