@Test
public void testMapToVoWithRenameFieldReverse() throws Exception {
// Test simple Map --> Vo with custom mappings defined.
mapper = getMapper(new String[] { "mapMapping2.xml" });
NestedObj nestedObj = newInstance(NestedObj.class);
nestedObj.setField1("nestedfield1value");
Map<String, Object> src = new HashMap<String, Object>();
src.put("first", "mapnestedfield1value");
src.put("nested", nestedObj);
SimpleObjPrime result = mapper.map(src, SimpleObjPrime.class, "caseD");
assertEquals(src.get("first"), result.getField1());
assertEquals(nestedObj.getField1(), result.getNested().getField1());
}