  @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);
  }