title: How to mock a QML component
body: <p>Actually I'm trying to run some test on a <a href="http://qt-project.org/doc/qt-5/qtqml-cppintegration-contextproperties.html">QML component which embeds C++ objects</a>. Unfortunately, I'm getting some errors when I execute my tests. The C++ objects aren't recognized by the QML file. That makes also sense as the C++ objects are set in the main.cpp file.</p>
  
  <p>My question is: How can I mock an context property for performing QML tests? Or other said, how can I do unit-test with mixing Qt/QML code?</p>