assertEquals(source.getPets()[1].getOffSpring()[2].getPetName(), dest.getOffSpringName());
}
@Test
public void testDeepMapInvIndexed() throws Exception {
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(((PersonalDetails) dest.getFamilyMembers().get(0)).getFirstName(), source.getFirstName());
assertEquals(((PersonalDetails) dest.getFamilyMembers().get(0)).getLastName(), source.getLastName());
assertEquals(((PersonalDetails) 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());
}