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

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