@Test
public void testBidirectionalWithCustomMapping() throws Exception {
Mapper mapper = getMapper(new String[] { "infiniteLoopMapping.xml" });
LoopObjectParent loopObjectParent = newInstance(LoopObjectParent.class);
LoopObjectChild loopObjectChild = newInstance(LoopObjectChild.class);
loopObjectChild.setParent(loopObjectParent);
loopObjectParent.setChild(loopObjectChild);
LoopObjectParentPrime loopObjectParentPrime = mapper.map(loopObjectParent, LoopObjectParentPrime.class);
assertNotNull(loopObjectParentPrime);
assertNotNull(loopObjectParentPrime.getChildPrime());