/** * This is primarily a test for the efficiency of our * usage of CGLIB. If we create too many classes with * CGLIB this will be slow or will run out of memory. */ @Test public void testManyProxies() { Assume.group(TestGroup.PERFORMANCE); int howMany = 10000; StopWatch sw = new StopWatch(); sw.start("Create " + howMany + " proxies"); testManyProxies(howMany); sw.stop(); assertTrue("Proxy creation was too slow", sw.getTotalTimeMillis() < 5000); }