### Question:
NameAndDataTypeColumnRenderer extends BaseGridColumnRenderer<InformationItemCell.HasNameCell> { @Override public Group renderCell(final GridCell<InformationItemCell.HasNameCell> cell, final GridBodyCellRenderContext context) { if (cell == null || cell.getValue() == null) { return null; } final InformationItemCell.HasNameCell hasNameCell = cell.getValue().getValue(); return hasNameCell.render(context); } NameAndDataTypeColumnRenderer(); @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<InformationItemCell.HasNameCell> cell,
                            final GridBodyCellRenderContext context);  }### Answer:
@Test @SuppressWarnings("unchecked") public void testRenderCellWithValue() { this.cell = new BaseGridCell<>(new BaseGridCellValue<>(InformationItemCell.HasNameCell.wrap(TITLE))); assertThat(renderer.renderCell(cell, bodyContext)).isNotNull(); verify(text1).setText(eq(TITLE)); verify(text1).setX(BLOCK_WIDTH / 2); verify(text1).setY(ROW_HEIGHT / 2); }