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

    Node value = Node.parse("{\"min\": 10, \"max\": \"100\", \"foo\": true}");
    NodeMapper mapper = new NodeMapper();
    Object result = mapper.deserialize(value, Object.class);
    assertThat(result, instanceOf(Map.class));
    assertThat(((Map<String, Object>) result).get("min"), equalTo(10L));
    assertThat(((Map<String, Object>) result).get("max"), equalTo("100"));
    assertThat(((Map<String, Object>) result).get("foo"), equalTo(true));
}