public void testValueCanBeChanged() {
    RoundToCell cell = new RoundToCell();
    cell.valueChanged(3);

    JSettings settings = (JSettings) JSettingsStore.instance().first();
    Assert.assertEquals(settings.roundTo, BigDecimals.parse("2.5"));
  }
  public void testHasDefaultSelection() {
    RoundToCell cell = new RoundToCell();
    Assert.assertEquals(cell.defaultSelection(), 4);

    JSettings settings = (JSettings) JSettingsStore.instance().first();
    settings.roundTo = new BigDecimal(JSettings.NEAREST_5_ROUNDING);
    Assert.assertEquals(cell.defaultSelection(), 5);

    settings.roundTo = new BigDecimal("0.5");
    Assert.assertEquals(cell.defaultSelection(), 0);
  }