### Question:
PopupDateEditCell extends AbstractPopupEditCell<Date, Date> { @Override protected void commit() { final Date date = convertToServerTimeZone(getDatePicker().getValue()); setValue(lastContext, lastParent, date); if (getValueUpdater() != null) { getValueUpdater().update(date); } panel.hide(); } PopupDateEditCell(final boolean isReadOnly); @Override void render(Context context,
                       Date value,
                       SafeHtmlBuilder sb);  }### Answer:
@Test public void testCommit() { final Date clientDate = makeDate("04-01-2018"); final Date serverDate = makeDate("04-01-2018"); when(datePicker.getValue()).thenReturn(clientDate); doReturn(serverDate).when(cell).convertToServerTimeZone(clientDate); cell.commit(); verify(cell).setValue(any(Cell.Context.class), any(Element.class), eq(serverDate)); verify(valueUpdater).update(eq(serverDate)); }