}
@Test
public void testDeepMapInvIndexed() throws Exception {
Mapper mapper = getMapper(new String[] { "genericCollectionMapping.xml" });
HeadOfHouseHold source = newInstance(HeadOfHouseHold.class);
source.setFirstName("Tom");
source.setLastName("Roy");
source.setPetName("Ronny");
source.setSalary(new Integer(15000));
source.setPetAge("2");
source.setOffSpringName("Ronny2");
Family dest = newInstance(Family.class);
mapper.map(source, dest);
assertEquals((dest.getFamilyMembers().get(0)).getFirstName(), source.getFirstName());
assertEquals((dest.getFamilyMembers().get(0)).getLastName(), source.getLastName());
assertEquals((dest.getFamilyMembers().get(0)).getSalary(), source.getSalary());
assertEquals(dest.getPets()[1].getPetName(), source.getPetName());
assertEquals(String.valueOf(dest.getPets()[1].getPetAge()), source.getPetAge());
assertEquals(dest.getPets()[1].getOffSpring()[2].getPetName(), source.getOffSpringName());
}