### Question:
ColumnDefinitionTableModel extends AbstractTableModel { public void setFormatEditable(boolean isEditable) { myIsFormatEditable = isEditable; }  void addRows(List<ColumnDefinitionRow> rows); void clear(); @Override Class<?> getColumnClass(int columnIndex); @Override int getColumnCount(); @Override String getColumnName(int column); ColumnDefinitionRow getRow(int rowIndex); @Override int getRowCount(); @Override Object getValueAt(int rowIndex, int columnIndex); @Override boolean isCellEditable(int rowIndex, int columnIndex); boolean isImportAllColumns(); void setFormatEditable(boolean isEditable); @Override void setValueAt(Object aValue, int rowIndex, int columnIndex);  }### Answer:
@Test public void testSetFormatEditable() { ColumnDefinitionTableModel model = new ColumnDefinitionTableModel(); ColumnDefinitionRow row = new ColumnDefinitionRow(); row.setDataType("Date"); model.addRows(New.list(row)); assertTrue(model.isCellEditable(0, 3)); model.setFormatEditable(false); assertFalse(model.isCellEditable(0, 3)); }