@SuppressWarnings("unchecked")
@Test
public void deserializedFromObjectIntoMap() {

    Node mappings = Node.parse("{\"foo\":\"foo\"}");
    NodeMapper mapper = new NodeMapper();
    Map<String, Object> result = mapper.deserialize(mappings, Map.class);
    assertThat(result, instanceOf(HashMap.class));
    assertThat(result.get("foo"), equalTo("foo"));
}