/**
* Test collection to primitive array mapping
*/
@Test
public void testCollectionToPrimitiveArray(){
ArraySource sourceBean = new ArraySource();
List<Integer> srcList = new ArrayList<Integer>();
srcList.add(new Integer(2));
srcList.add(new Integer(3));
srcList.add(new Integer(8));
sourceBean.setListOfIntegers(srcList);
ArrayDest destBean = mapper.map(sourceBean, ArrayDest.class);
int[]resultPrimitiveIntArray = destBean.getPrimitiveIntArray();
for (int i = 0; i < srcList.size(); i++) {
Integer srcValue = new Integer(srcList.get(i));