### Question:
ExpressionCellValue extends BaseGridCellValue<Optional<BaseExpressionGrid<? extends Expression, ? extends GridData, ? extends BaseUIModelMapper>>> { public Optional<Double> getMinimumWidth() { final Optional<BaseExpressionGrid<? extends Expression, ? extends GridData, ? extends BaseUIModelMapper>> editor = getValue(); if (editor.isPresent()) { final BaseExpressionGrid beg = editor.get(); return Optional.of(beg.getMinimumWidth()); } return Optional.empty(); } ExpressionCellValue(final Optional<BaseExpressionGrid<? extends Expression, ? extends GridData, ? extends BaseUIModelMapper>> editor); Optional<Double> getMinimumWidth();  }### Answer:
@Test public void testMinimumWidthWhenNoEditorSet() { setup(Optional.empty()); assertFalse(ecv.getMinimumWidth().isPresent()); }
@Test public void testMinimumWidthWhenEditorSet() { doReturn(100.0).when(editor).getMinimumWidth(); setup(Optional.of(editor)); final Optional<Double> oMinimumWidth = ecv.getMinimumWidth(); assertTrue(oMinimumWidth.isPresent()); assertEquals(100.0, oMinimumWidth.get(), 0.0); }