### Question:
PopupDateEditCell extends AbstractPopupEditCell<Date, Date> { @Override public void render(Context context, Date value, SafeHtmlBuilder sb) { if (value != null) { sb.append(getRenderer().render(FORMATTER.format(value))); } } PopupDateEditCell(final boolean isReadOnly); @Override void render(Context context,
                       Date value,
                       SafeHtmlBuilder sb);  }### Answer:
@Test public void testRender() { final Cell.Context context = mock(Cell.Context.class); final SafeHtmlBuilder safeHtmlBuilder = mock(SafeHtmlBuilder.class); final Date clientDate = makeDate("05-01-2018"); cell.render(context, clientDate, safeHtmlBuilder); verify(renderer).render(eq("05-01-2018")); }
@Test public void testRenderWhenValueIsNull() { final Cell.Context context = mock(Cell.Context.class); final SafeHtmlBuilder safeHtmlBuilder = mock(SafeHtmlBuilder.class); cell.render(context, null, safeHtmlBuilder); verify(renderer, never()).render(anyString()); }