### Question:
NameAndDataTypeDOMElementColumnRenderer extends BaseGridColumnSingletonDOMElementRenderer<String, W, E> { @Override public Group renderCell(final GridCell<String> cell, final GridBodyCellRenderContext context) { if (cell == null || cell.getValue() == null) { return null; } return RendererUtils.getExpressionCellText(context, cell); } NameAndDataTypeDOMElementColumnRenderer(final BaseSingletonDOMElementFactory<String, W, E> factory); @Override Group renderHeaderContent(final List<GridColumn.HeaderMetaData> headerMetaData,
                                     final GridHeaderColumnRenderContext context,
                                     final int headerRowIndex,
                                     final double blockWidth,
                                     final double rowHeight); @Override Group renderCell(final GridCell<String> cell,
                            final GridBodyCellRenderContext context);  }### Answer:
@Test @SuppressWarnings("unchecked") public void testRenderCellWithValue() { this.cell = new BaseGridCell<>(new BaseGridCellValue<>(TITLE)); assertThat(renderer.renderCell(cell, bodyContext)).isNotNull(); verify(text1).setText(eq(TITLE)); verify(text1).setX(5); verify(text1).setY(5); }