title: Spring autowire before constructor
body: <p>Hi, I have a class that I want to test. This class has an autowired DAO object this object is been used in a <code>@PostConstruct</code> method, but I want to use the mock and not the real object is there a way. Here is an example:</p>
  
  <pre><code>@Autowired
  PersonDao personDao;
  //Constructor 
  public Person()
  {
      //Do stuff
  }
  
  @PostConstruct
  void init()
  {
      //I need it to be a mock
      personDao.add(new Person());
  }
  </code></pre>