### Question:
ParseDate implements IsParser<Date> { @Override public void setCell(Date o, Cell cell, Field field) { if (o != null) { String format = field.getAnnotation(JsonFormat.class).pattern(); cell.setCellValue(new SimpleDateFormat(format).format(o)); } }  @Override Date parse(Object o, Field field); @Override void setCell(Date o, Cell cell, Field field);  }### Answer:
@Test public void setCell() throws Exception { Cell cell = CellGenerateUtil.create(); parseDate.setCell(null, cell, null); assertEquals("", cell.getStringCellValue()); Date actual = new Date(); parseDate.setCell(new Date(), cell, this.getClass().getDeclaredField("jsonFormatField")); assertEquals(new SimpleDateFormat("dd.MM.yyyy").format(actual), cell.getStringCellValue()); }