### Question:
LiteralExpressionUIModelMapper extends BaseUIModelMapper<LiteralExpression> { @Override public void fromDMNModel(final int rowIndex, final int columnIndex) { dmnModel.get().ifPresent(literalExpression -> { uiModel.get().setCell(rowIndex, columnIndex, () -> new LiteralExpressionCell<>(new BaseGridCellValue<>(literalExpression.getText().getValue()), listSelector, lineHeight)); }); } LiteralExpressionUIModelMapper(final Supplier<GridData> uiModel,
                                          final Supplier<Optional<LiteralExpression>> dmnModel,
                                          final ListSelectorView.Presenter listSelector,
                                          final double lineHeight); @Override void fromDMNModel(final int rowIndex,
                             final int columnIndex); @Override void toDMNModel(final int rowIndex,
                           final int columnIndex,
                           final Supplier<Optional<GridCellValue<?>>> cell);  }### Answer:
@Test public void testFromDmn_Empty() { mapper.fromDMNModel(0, 0); assertEquals("", ((BaseGridCellValue) uiModel.getCell(0, 0).getValue()).getValue()); }
@Test public void testFromDmn_MultiByte() { literalExpression.getText().setValue("学校"); mapper.fromDMNModel(0, 0); assertEquals("学校", ((BaseGridCellValue) uiModel.getCell(0, 0).getValue()).getValue()); }
@Test public void testFromDmn_CellType() { mapper.fromDMNModel(0, 0); assertTrue(uiModel.getCell(0, 0) instanceof LiteralExpressionCell); }