title: jpa problems running multiple tests with spring
body: <p>my problem is that when I run tests individually the test work properly but when I run all the tests several tests start to fail.</p>
  
  <p>It looks to be a problem of the applicationContext I have 3 applicationContext but the applicationContext-test import the 2 before.</p>
  
  <p>Some times I do 
  @applicationContext(applicatonContext1.xml)</p>
  
  <p>and other times
  @applicationContext(applicationContext-test.xml)</p>
  
  <p>I get different exceptions for different tests:</p>
  
  <ul>
  <li>SQLGrammarException: could not execute query.</li>
  <li>Detached entity exceptions</li>
  <li>ConstraintViolation exception.</li>
  </ul>
  
  <p>Some tests work properly and some no, but I don't know why. 
  Thanks</p>