title: Junit tests sharing same data object? Should I make a mock of it or what?
body: <p>I have three classes I need to test, lets say Load, Transform, Perform and they all begin or work on the same data object, at least that's what is required, from one data object X the Load methods perform their thing on it, then it is given to Transform which also does its thing with its methods, and a Perform which changes the data object a bit and it is ready. </p>
  
  <p>Now I want to write tests for Load, Transform and Perform. </p>
  
  <p>The test-data object, should I just make a static method in the Load class like </p>
  
  <pre><code>public static TestData makeTestData(...makeit...)
  </code></pre>
  
  <p>OR should I make a TestDataMock or TestDataTest class ? Which can return an example of it? And make a new TestDataTest class in each Load, Transform and Perform when they need to work on it?</p>