// bug #1803172
@Test
public void testDeepIndexMapping_CollectionNeedsResizing() {
mapper = getMapper(new String[] { "deepMappingWithIndexedFields.xml" });
A src = new A();
src.setId1(new Integer(10));
src.setId2(new Integer(20));
B dest = mapper.map(src, B.class);
assertEquals("wrong value for id1", src.getId1().intValue(), dest.getFoo()[0].getId());
assertEquals("wrong value for id2", src.getId2().intValue(), dest.getFoo()[1].getId());
}