One of the major challenges of creating automated Testing is to create all dependencies in order to execute the test. I am talking this in Java for a fairly older applications, but I believe this still applies to newer app as well.<p>I am looking for some testing framework/libraries, where after configuring the dependency graph, it should create all the dependent objects and be able to execute the test. For e.g. Let's say, the following is the dependency graph and I want to execute the method in A :<p>A <-- B <-- C<p>Then the library is smart enough to create all dependencies in the database and execute the test. It would be even better, if I can set the number of instances to create etc.<p>Here are the few resources I found helpful:<p>1. https://stackoverflow.com/questions/591892/tools-for-generating-mock-data<p>2. https://github.com/Devskiller/jfairy