put("field9", FieldSetType.LONG);
put("field10", FieldSetType.SHORT);
put("field11", FieldSetType.STRING);
}
});
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"));