title: Initializing a mock object internals before injecting it with @InjectMocks
body: <p>I have something like </p>
  
  <pre><code>private static final CustomObject ObjectA = new CustomObject();
  
      @Mock
      Foo1 foo1;
  
      @Mock
      Foo2 Foo2 = new Foo2(ObjectA);
  
      @Mock
      Foo3 foo3;
  
      @InjectMocks
      ContainerClass container;
  </code></pre>
  
  <p>I want to initialize Foo2 with ObjectA before it gets injected in container. The above code is not working.</p>
  
  <p>EDIT: I am trying to mock Foo2 but there is an internal object of Foo2 which i want to initialize with a real object, so when i call methods of Foo2, this internal object is utilized to give me results i need based on the values i provided during its construction.</p>