title: How do I use JUnitPerf with JWebUnit and JUnit 4?
body: <p>I have a series of functional tests against a web application that correctly run, but each require the class level setup and teardown provided with the <code>@BeforeClass</code> and <code>@AfterClass</code> annotations, and hence require JUnit 4.0 or above.</p>
  
  <p>Now I want to perform load testing using a small number of these functional tests, which simulate a large number of users requesting the related page of the web application.  In order for each user to have their own "simulated browser" in JWebUnit, I need to use a TestFactory in JUnitPerf to instantiate the class under test, but since JUnit 4 tests are annotated with <code>@Test</code> instead of being derived from <code>TestCase</code>, I'm getting a <code>TestFactory must be constructed with a TestCase class</code> exception.</p>
  
  <p>Is anyone successfully using JUnitPerf and its TestFactory with JUnit 4?  And what is the secret sauce that lets it all work?</p>