### Question:
ColumnDefinitionRow extends Observable { public void setDataType(String dataType) { myDataType = dataType; setChanged(); notifyObservers(DATA_TYPE_PROPERTY); }  int getColumnId(); String getColumnName(); String getDataType(); String getFormat(); boolean isImport(); void setColumnId(int columnId); void setColumnName(String columnName); void setDataType(String dataType); void setFormat(String format); void setIsImport(boolean isImport); static final String COLUMN_NAME_PROPERTY; static final String DATA_TYPE_PROPERTY; static final String FORMAT_PROPERTY; static final String IMPORT_PROPERTY; }### Answer:
@Test public void testSetDataType() { EasyMockSupport support = new EasyMockSupport(); Observer observer = ModelTestUtil.createObserver(support, ColumnDefinitionRow.DATA_TYPE_PROPERTY); support.replayAll(); ColumnDefinitionRow row = new ColumnDefinitionRow(); row.addObserver(observer); String dataType = "Date"; row.setDataType(dataType); assertEquals(dataType, row.getDataType()); support.verifyAll(); }