### Question:
FunctionEditorModel { public void setFormalReturnType(DataType formalReturnType) { setParameterFormalDataType(returnInfo, formalReturnType); } FunctionEditorModel(DataTypeManagerService service, Function function); List<String> getCallingConventionNames(); String[] getCallFixupNames(); void setName(String name); void setCallingConventionName(String callingConventionName); String getCallingConventionName(); void setHasVarArgs(boolean b); String getName(); void dispose(); boolean hasValidName(); boolean isValid(); String getFunctionSignatureTextFromModel(); String getNameString(); boolean hasVarArgs(); DataType getReturnType(); DataType getFormalReturnType(); void setFormalReturnType(DataType formalReturnType); String getStatusText(); void setIsInLine(boolean isInLine); void setNoReturn(boolean isNoReturn); boolean isInlineAllowed(); boolean isInLine(); boolean isNoReturn(); String getCallFixupName(); void setCallFixupName(String callFixupName); void setSelectedParameterRow(int[] selectedRows); int[] getSelectedParameterRows(); void addParameter(); void removeParameters(); void moveSelectedParameterUp(); void moveSelectedParameterDown(); List<ParamInfo> getParameters(); boolean canRemoveParameters(); boolean canMoveParameterUp(); boolean canMoveParameterDown(); void setParameterName(ParamInfo param, String newName); void setParameterFormalDataType(ParamInfo param, DataType formalDataType); VariableStorage getReturnStorage(); Function getFunction(); void setReturnStorage(VariableStorage storage); void setParameterStorage(ParamInfo param, VariableStorage storage); void setUseCustomizeStorage(boolean b); boolean canCustomizeStorage(); boolean apply(); void setFunctionData(FunctionDefinitionDataType functionDefinition); boolean isInParsingMode(); void setSignatureFieldText(String text); void resetSignatureTextField(); void parseSignatureFieldText(); int getFunctionNameStartPosition(); void setModelChanged(boolean b); static final String PARSING_MODE_STATUS_TEXT; }### Answer:
@Test public void testSettingSameReturnTypeDoesNothing() { assertDataChangedCallback(false); model.setFormalReturnType( program.getDataTypeManager().getDataType(CategoryPath.ROOT, "void")); assertDataChangedCallback(false); model.setFormalReturnType(new IntegerDataType()); assertDataChangedCallback(true); }