});
FieldSet fieldSet = new DefaultFieldSet(new String[] { "19.95", "true", "1", "M", "1977-10-22", "2.22", "9.99",
"5", "9", "10", "some dummy string", "2007-06-23" },
new String[] { "field1", "field2", "field3", "field4", "field5", "field6", "field7", "field8",
"field9", "field10", "field11", "field12" });
Tuple result = mapper.mapFieldSet(fieldSet);
assertEquals(new BigDecimal("19.95"), result.getValue("field1"));
assertEquals(true, result.getValue("field2"));
assertEquals((byte) 1, result.getValue("field3"));
assertEquals('M', result.getValue("field4"));
assertEquals(formatter.parse("1977-10-22"), result.getValue("field5"));
assertEquals(2.22, result.getValue("field6"));
assertEquals(9.99f, result.getValue("field7"));
assertEquals(5, result.getValue("field8"));
assertEquals(9l, result.getValue("field9"));
assertEquals((short) 10, result.getValue("field10"));
assertEquals("some dummy string", result.getValue("field11"));
assertEquals("2007-06-23", result.getValue("field12"));
}