@Test
public void shouldMapEnum() {

	final RetentionPolicy value = RetentionPolicy.RUNTIME;
	Assert.assertEquals(TextNode.valueOf(value.name()), this.mapper.map(value));
	Assert.assertEquals(TextNode.valueOf(value.name()), this.mapper.map(value, null, TextNode.class));
	Assert.assertEquals(TextNode.valueOf(value.name()), this.mapper.map(value, null, IPrimitiveNode.class));
	Assert.assertEquals(TextNode.valueOf(value.name()), this.mapper.map(value, null, IJsonNode.class));
	Assert.assertEquals(TextNode.valueOf(value.name()), this.mapper.map(value, null, AbstractJsonNode.class));
	Assert.assertEquals(TextNode.valueOf(value.name()), this.mapper.map(value, null, Object.class));
	Assert.assertSame(TextNode.class, this.mapper.getDefaultMappingType(Enum.class));
}