def flex_object
m = flexmock("funfx")
m.should_receive(:checkProperty).with(@id,"text").and_return("Test")
m.should_receive(:checkProperty).with(@id,"bla").and_return(nil)
m.should_receive(:checkComponent).with("tempid", "FlexObject").and_return("datagrid_id")
m.should_receive(:checkComponent).with("tempid", "FlexButton").and_return("new_id")
m.should_receive(:checkComponent).with("tempid", "").and_return(false)
m.should_receive(:getTabularData).with("tempid").and_return("bla")
m.should_receive(:ready).with("FUNFX").and_return(true)
return m
end