/**
* Test on a mapping from Enum to itself. This test is used to reproduce bug#1806780.
*/
@Test
public void testEnumMapsToItself() {
MyBean src = newInstance(MyBean.class);
src.setSrcType(SrcType.FOO);
MyBean dest = mapper.map(src, MyBean.class);
assertEquals(src.getSrcType(), dest.getSrcType());
assertEquals(src.getSrcTypeWithOverride(), dest.getSrcTypeWithOverride());
}