* not be dirty.
* </p>
*/
public void testFormModelSetFormObjectNotDirty() {
String someString = "someString";
FormModel model = getFormModel(new ValueHolder(new TestBean()), false);
ValueModel valueModel = model.getValueModel("simpleProperty");
assertEquals("Initial check, formmodel not dirty.", false, model.isDirty());
valueModel.setValue(someString);
assertEquals("Value changed, model should be dirty.", true, model.isDirty());
TestBean newFormObject = new TestBean();
newFormObject.setSimpleProperty(someString);
model.setFormObject(newFormObject);
assertEquals("New formObject is set, model should not be dirty.", false, model.isDirty());
}