@Test
public void testListOfCustomObjectsToStringArray() {
mapper = getMapper(new String[] { "knownFailures.xml" });
MessageHeaderVO vo = new MessageHeaderVO();
List<MessageIdVO> ids = new ArrayList<MessageIdVO>();
ids.add(new MessageIdVO("1"));
ids.add(new MessageIdVO("2"));
vo.setMsgIds(ids);
MessageHeaderDTO result = mapper.map(vo, MessageHeaderDTO.class);
assertEquals("1", result.getIdList().getMsgIdsArray()[0]);
assertEquals("2", result.getIdList().getMsgIdsArray()[1]);
}