* Test on a mapping from {@link String} to enum.
*/
@Test
public void testStringMapsToEnum() {
mapper = getMapper(new String[] { "enumMapping.xml" });
MyBeanPrimeString src = new MyBeanPrimeString();
src.setDestType("FOO");
src.setDestTypeWithOverride("BAR");
MyBean dest = mapper.map(src, MyBean.class);
assertEquals(SrcType.FOO, dest.getSrcType());
assertEquals(SrcTypeWithOverride.BAR, dest.getSrcTypeWithOverride());
}