@Test
public void deserializesEnums() {

    NodeMapper mapper = new NodeMapper();
    assertThat(FooEnum.FOO, equalTo(mapper.deserialize(Node.from("foo"), FooEnum.class)));
    assertThat(FooEnum.BAZ, equalTo(mapper.deserialize(Node.from("Baz"), FooEnum.class)));
    assertThat(FooEnum.BAR, equalTo(mapper.deserialize(Node.from("BAR"), FooEnum.class)));
}