* Test on a mapping from enum types to integer.
*/
@Test
public void testEnumMapsToInteger() {
mapper = getMapper(new String[] { "enumMapping.xml" });
MyBean src = new MyBean();
src.setSrcType(SrcType.FOO);
src.setSrcTypeWithOverride(SrcTypeWithOverride.BAR);
MyBeanPrimeInteger dest = mapper.map(src, MyBeanPrimeInteger.class);
assertEquals(0, dest.getFirst());
assertEquals(Integer.valueOf(1), dest.getSecond());
}