DateTimeFieldMappingFactory implements FieldMappingFactory { @Override public FieldMapping createFieldMapping(EntitySchemaFactory schemaFactory, Class<?> entityType, String csvFieldName, String objFieldName, Class<?> objFieldType, boolean required) { return new DateTimeFieldMapping(entityType, csvFieldName, objFieldName, required); }  @Override FieldMapping createFieldMapping(EntitySchemaFactory schemaFactory,
      Class<?> entityType, String csvFieldName, String objFieldName,
      Class<?> objFieldType, boolean required);  }
@Test public void test() throws ParseException { DateTimeFieldMappingFactory factory = new DateTimeFieldMappingFactory(); FieldMapping mapping = factory.createFieldMapping(null, NycTestLocationRecord.class, "dt", "timestamp", Long.class, true); NycTestLocationRecord record = new NycTestLocationRecord(); record.setTimestamp(1284377940000L); BeanWrapper obj = BeanWrapperFactory.wrap(record); Map<String, Object> csvValues = new HashMap<String, Object>(); mapping.translateFromObjectToCSV(null, obj, csvValues); Object value = csvValues.get("dt"); assertEquals("2010-09-13 07:39:00", value); }