### Question:
ColumnDefinitionModel extends Observable { public void setSelectedDefinition(ColumnDefinitionRow selectedDefinition) { mySelectedDefinition = selectedDefinition; setChanged(); notifyObservers(SELECTED_DEFINITION_PROPERTY); }  List<String> getAvailableDataTypes(); List<String> getAvailableFormats(); BeforeAfterTableModel getBeforeAfterTableModel(); ColumnDefinitionTableModel getDefinitionTableModel(); String getErrorMessage(); ColumnDefinitionRow getSelectedDefinition(); String getWarningMessage(); void setAvailableDataTypes(List<String> availableDataTypes); void setAvailableFormats(List<String> availableFormats); void setErrorMessage(String errorMessage); void setSelectedDefinition(ColumnDefinitionRow selectedDefinition); void setWarningMessage(String warningMessage); List<? extends List<? extends String>> getSampleData(); void setSampleData(List<? extends List<? extends String>> sampleData); CSVParseParameters getSelectedParameters(); void setSelectedParameters(CSVParseParameters selectedParameters); boolean canAddFormats(); void setCanAddFormats(boolean canAddFormats); void setDetectedParameters(DetectedParameters detectedParameters); ValuesWithConfidence<LocationResults> getLocationParameter(); static final String AVAILABLE_DATA_TYPES_PROPERTY; static final String AVAILABLE_FORMATS_PROPERTY; static final String ERROR_MESSAGE_PROPERTY; static final String SELECTED_DEFINITION_PROPERTY; static final String WARNING_MESSAGE_PROPERTY; static final String CAN_ADD_FORMATS_PROPERTY; }### Answer:
@Test public void testSetSelectedDefinition() { EasyMockSupport support = new EasyMockSupport(); Observer observer = ModelTestUtil.createObserver(support, ColumnDefinitionModel.SELECTED_DEFINITION_PROPERTY); support.replayAll(); ColumnDefinitionModel model = new ColumnDefinitionModel(); model.addObserver(observer); ColumnDefinitionRow definition = new ColumnDefinitionRow(); model.setSelectedDefinition(definition); assertEquals(definition, model.getSelectedDefinition()); support.verifyAll(); }