Buggy code:
public class TestPreparedQueryCache extends SQLListenerTestCase { public static final boolean FAIL_ON_PERF_DEGRADE = Boolean . getBoolean ( "FailOnPerformanceRegression" ) ; public static final int SAMPLE_SIZE = 100 ; public static final boolean USE_CACHE = true ; public static final boolean IS_NAMED_QUERY = true ; public static final String [ ] COMPANY_NAMES = new String [ ] { "IBM" , "BEA" , "acme.org" } ; public static final int [ ] START_YEARS = new int [ ] { 1900 , 2000 , 2010 } ; public static final String [ ] DEPARTMENT_NAMES = new String [ ] { "Marketing" , "Sales" , "Engineering" } ; public static final String [ ] EMPLOYEE_NAMES = new String [ ] { "Tom" , "Dick" , "Harray" } ; public static final String [ ] CITY_NAMES = new String [ ] { "Tulsa" , "Durban" , "Harlem" } ; public static final String EXCLUDED_QUERY_1 = "select<seq2seq4repair_space>count(p)<seq2seq4repair_space>from<seq2seq4repair_space>Company<seq2seq4repair_space>p" ; public static final String EXCLUDED_QUERY_2 = "select<seq2seq4repair_space>count(p)<seq2seq4repair_space>from<seq2seq4repair_space>Department<seq2seq4repair_space>p" ; public static final String INCLUDED_QUERY = "select<seq2seq4repair_space>p<seq2seq4repair_space>from<seq2seq4repair_space>Address<seq2seq4repair_space>p" ; private Company IBM ; public void setUp ( ) throws Exception { <START_BUG> super . setUp ( CLEAR_TABLES , Company . class , Department . class , Employee . class , Address . class , "openjpa.QuerySQLCache" , "true(excludes='select<seq2seq4repair_space>count(p)<seq2seq4repair_space>from<seq2seq4repair_space>Company<seq2seq4repair_space>p;select<seq2seq4repair_space>count(p)<seq2seq4repair_space>from<seq2seq4repair_space>Department<seq2seq4repair_space>p')" ) ; <END_BUG> createTestData ( ) ; } void createTestData ( ) { } public void tearDown ( ) throws Exception { } PreparedQueryCache getCache ( ) { } public void testPreparedQueryCacheIsActiveByDefault ( ) { } public void testPreparedQueryCacheCanBeDeactivatedDynamically ( ) { } public void testPreparedQueryCacheIsPerUnitSingleton ( ) { } public void testPreparedQueryIdentifierIsOriginalJPQLQuery ( ) { } public void testExclusionPattern ( ) { } void assertLanguage ( OpenJPAQuery q , String lang ) { } void assertCached ( String id ) { } void assertNotCached ( String id ) { } public void testPreparedQueryIsCachedOnExecution ( ) { } public void testPreparedQueryIsCachedAcrossExecution ( ) { } public void testInvalidatePreparedQueryWithHint ( ) { } public void testIgnorePreparedQueryWithHint ( ) { } public void testQueryStatistics ( ) { } public void testResetQueryStatistics ( ) { } public void testQueryWithNoParameter ( ) { } public void testQueryWithLiteral ( ) { } public void testQueryWithParameter ( ) { } public void testQueryWithJoinsAndParameters ( ) { } public void testNamedQueryWithNoParameter ( ) { } public void testNamedQueryWithLiteral ( ) { } public void testNamedQueryWithPositionalParameter ( ) { } public void testNamedQueryWithNamedParameter ( ) { } public void testPersistenceCapableParameter ( ) { } public void testProjectionResult ( ) { } public void testCollectionValuedParameters ( ) { } void compare ( boolean isNamed , String jpql , int expectedCount , Object ... params ) { } long run ( String jpql , Object [ ] params , boolean useCache , int N , boolean isNamedQuery , int expectedCount ) { } long run ( String jpql , Object [ ] params , boolean useCache , int N , boolean isNamedQuery , int expectedCount , boolean checkHits ) { } String getSQL ( String queryKey ) { } String getJPQL ( String namedQuery ) { } String literal ( String s ) { } void log ( String s ) { } void trace ( String s ) { } void walk ( List list ) { } }

Fix:
super . setUp ( CLEAR_TABLES , Company . class , Department . class , Employee . class , Address . class , "openjpa.jdbc.QuerySQLCache" , "true(excludes='select<seq2seq4repair_space>count(p)<seq2seq4repair_space>from<seq2seq4repair_space>Company<seq2seq4repair_space>p;select<seq2seq4repair_space>count(p)<seq2seq4repair_space>from<seq2seq4repair_space>Department<seq2seq4repair_space>p')" ) ;