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