@Ignore("Started failing for some reason. Tests very exotic functionality.")
@Test
public void testNestedCustomMap() {
mapper = getMapper("mapMapping4.xml");
ParentDOM src = newInstance(ParentDOM.class);
src.setTest("someTestValue");
ChildDOM child = newInstance(ChildDOM.class);
child.setChildName("someChildName");
src.setChild(child);
GenericDOM result = mapper.map(src, GenericDOM.class);
assertEquals("someTestValue", result.get("test"));
GenericDOM resultChild = (GenericDOM) result.get("child");
assertEquals("someChildName", resultChild.get("childName"));