public void testEnumMapsToByte() {
mapper = getMapper(new String[] { "enumMapping.xml" });
MyBean src = new MyBean();
src.setSrcType(SrcType.FOO);
src.setSrcTypeWithOverride(SrcTypeWithOverride.BAR);
MyBeanPrimeByte dest = mapper.map(src, MyBeanPrimeByte.class);
assertEquals(0, dest.getFirst());
assertEquals(Byte.valueOf((byte) 1), dest.getSecond());
}