* .
*/
@Test
public final void testGenerateComplexObjectFromCsv() throws Exception {
try {
CsvToObjectMapper csvToObjectMapper = new CsvToObjectMapper(
new InputStreamResource(new ByteArrayInputStream(
csvFileContent.getBytes())), false,
"complexCsvMappingDefinition");
// assertTrue(csvToObjectMapper.loadNextRecord());
CsvComplexTestBean bean = (CsvComplexTestBean) csvToObjectMapper
.generateNextObjectFromCsv();
assertEquals("hello kitty", bean.getFoo());
assertEquals("hello kitty", bean.getBar().getFoo());
assertEquals(new BigDecimal("1.21").toString(), bean.getBar()
.getBar().toString());