@Test
public void shouldMapObject() {

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