@Test
public void shouldMapObject() {

	final ObjectNode object = new ObjectNode();
	object.put("a", IntNode.valueOf(1));
	object.put("b", TextNode.valueOf("test"));
	final Map<String, Object> expected = new HashMap<String, Object>();
	expected.put("a", 1);
	expected.put("b", "test");
	Assert.assertEquals(expected, this.mapper.map(object, null, Map.class));
	Assert.assertEquals(expected, this.mapper.map(object, null, HashMap.class));
	Assert.assertSame(HashMap.class, this.mapper.map(object, null, HashMap.class).getClass());
	Assert.assertEquals(expected, this.mapper.map(object));
}