@Test
public void shouldNestedMapObject() {

	final Map<String, Object> object = new HashMap<String, Object>();
	object.put("a", 1);
	object.put("b", "test");
	final Map<String, Object> nested = new HashMap<String, Object>();
	nested.put("1", "x");
	nested.put("2", true);
	object.put("nestedObject", nested);
	final IJsonNode node = this.mapper.map(object);
	final ObjectNode expected = new ObjectNode();
	expected.put("a", IntNode.valueOf(1));
	expected.put("b", TextNode.valueOf("test"));
	final ObjectNode nestedObjectNode = new ObjectNode();
	nestedObjectNode.put("1", TextNode.valueOf("x"));
	nestedObjectNode.put("2", BooleanNode.valueOf(true));
	expected.put("nestedObject", nestedObjectNode);
	Assert.assertEquals(expected, node);
}