title: Database cleanup after Selenium tests
body: <p>After I run a bunch of Selenium (jUnit4) tests using Maven, I'd like to do a database clean-up (remove things they inserted etc). It's an older project running on Tapestry/Spring/Hibernate and a legacy database. I'd like to do the clean up in an <code>@After</code> annotated method - but injecting of DAO's/Managers/SessionFactory doesn't work.</p>
  
  <p>The testing goes like this: I run (<code>mvn jetty:run-war</code>) the app in one console, and start the testing in another console (<code>mvn test</code>) - it accesses the app on localhost:8080.</p>