@Test public void testWriteCellWithNull() throws Exception { calendarConverter.writeCell(mockCell, null); verify(mockCell, never()).setCellValue(any(Calendar.class)); }
@Test public void testWriteCell() throws Exception { final Calendar calendar = Calendar.getInstance(); calendarConverter.writeCell(mockCell, calendar); verify(mockCell).setCellValue(calendar); }