Buggy code:
public class ConcurrentReferenceHashMapTests { private static final Comparator < ? super String > NULL_SAFE_STRING_SORT = new org . springframework . util . comparator . NullSafeComparator < String > ( new org . springframework . util . comparator . ComparableComparator < String > ( ) , true ) ; @ Rule public ExpectedException thrown = ExpectedException . none ( ) ; private ConcurrentReferenceHashMapTests . TestWeakConcurrentCache < Integer , String > map = new ConcurrentReferenceHashMapTests . TestWeakConcurrentCache < Integer , String > ( ) ; @ Test public void shouldCreateWithDefaults ( ) throws Exception { } @ Test public void shouldCreateWithInitialCapacity ( ) throws Exception { } @ Test public void shouldCreateWithInitialCapacityAndLoadFactor ( ) throws Exception { } @ Test public void shouldCreateWithInitialCapacityAndConcurrenyLevel ( ) throws Exception { } @ Test public void shouldCreateFullyCustom ( ) throws Exception { } @ Test public void shouldNeedPositiveConcurrenyLevel ( ) throws Exception { } @ Test public void shouldNeedNonNegativeInitialCapacity ( ) throws Exception { new ConcurrentReferenceHashMap < Integer , String > ( 0 , 1 ) ; this . thrown . expect ( IllegalArgumentException . class ) ; <START_BUG> this . thrown . expectMessage ( "InitialCapactity<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>negative" ) ; <END_BUG> new ConcurrentReferenceHashMapTests . TestWeakConcurrentCache < Integer , String > ( ( - 1 ) , 1 ) ; } @ Test public void shouldNeedPositiveLoadFactor ( ) throws Exception { } @ Test public void shouldPutAndGet ( ) throws Exception { } @ Test public void shouldReplaceOnDoublePut ( ) throws Exception { } @ Test public void shouldPutNullKey ( ) throws Exception { } @ Test public void shouldPutNullValue ( ) throws Exception { } @ Test public void shouldGetWithNoItems ( ) throws Exception { } @ Test public void shouldApplySupplimentalHash ( ) throws Exception { } @ Test public void shouldGetFollowingNexts ( ) throws Exception { } @ Test public void shouldResize ( ) throws Exception { } @ Test public void shouldPurgeOnGet ( ) throws Exception { } @ Test public void shouldPergeOnPut ( ) throws Exception { } @ Test public void shouldPutIfAbsent ( ) throws Exception { } @ Test public void shouldPutIfAbsentWithNullValue ( ) throws Exception { } @ Test public void shouldPutIfAbsentWithNullKey ( ) throws Exception { } @ Test public void shouldRemoveKeyAndValue ( ) throws Exception { } @ Test public void shouldRemoveKeyAndValueWithExistingNull ( ) throws Exception { } @ Test public void shouldReplaceOldValueWithNewValue ( ) throws Exception { } @ Test public void shouldReplaceOldNullValueWithNewValue ( ) throws Exception { } @ Test public void shouldReplaceValue ( ) throws Exception { } @ Test public void shouldReplaceNullValue ( ) throws Exception { } @ Test public void shouldGetSize ( ) throws Exception { } @ Test public void shouldSupportIsEmpty ( ) throws Exception { } @ Test public void shouldContainKey ( ) throws Exception { } @ Test public void shouldContainValue ( ) throws Exception { } @ Test public void shouldRemoveWhenKeyIsInMap ( ) throws Exception { } @ Test public void shouldRemoveWhenKeyIsNotInMap ( ) throws Exception { } @ Test public void shouldPutAll ( ) throws Exception { } @ Test public void shouldClear ( ) throws Exception { } @ Test public void shouldGetKeySet ( ) throws Exception { } @ Test public void shouldGetValues ( ) throws Exception { } @ Test public void shouldGetEntrySet ( ) throws Exception { } @ Test public void shouldGetEntrySetFollowingNext ( ) throws Exception { } @ Test public void shouldRemoveViaEntrySet ( ) throws Exception { } @ Test public void shouldSetViaEntrySet ( ) throws Exception { } @ Test @ Ignore ( "Intended<seq2seq4repair_space>for<seq2seq4repair_space>use<seq2seq4repair_space>during<seq2seq4repair_space>development<seq2seq4repair_space>only" ) public void shouldBeFasterThanSynchronizedMap ( ) throws Exception { } @ Test public void shouldSupportNullReference ( ) throws Exception { } private < V > StopWatch timeMultiThreaded ( String id , final Map < Integer , V > map , ConcurrentReferenceHashMapTests . ValueFactory < V > factory ) throws InterruptedException { } private static interface ValueFactory < V > { V newValue ( int k ) { } } private static class TestWeakConcurrentCache < K , V > extends ConcurrentReferenceHashMap < K , V > { private int supplimentalHash ; private final LinkedList < ConcurrentReferenceHashMapTests . MockReference < K , V > > queue = new LinkedList < ConcurrentReferenceHashMapTests . MockReference < K , V > > ( ) ; private boolean disableTestHooks ; public TestWeakConcurrentCache ( ) { } public void setDisableTestHooks ( boolean disableTestHooks ) { } public TestWeakConcurrentCache ( int initialCapacity , float loadFactor , int concurrencyLevel ) { } public TestWeakConcurrentCache ( int initialCapacity , int concurrencyLevel ) { } @ Override protected int getHash ( Object o ) { } public int getSupplimentalHash ( ) { } @ Override protected ReferenceManager createReferenceManager ( ) { } public ConcurrentReferenceHashMapTests . MockReference < K , V > getMockReference ( K key , Restructure restructure ) { } } private static class MockReference < K , V > implements Reference < K , V > { private final int hash ; private Entry < K , V > entry ; private final Reference < K , V > next ; private final LinkedList < ConcurrentReferenceHashMapTests . MockReference < K , V > > queue ; public MockReference ( Entry < K , V > entry , int hash , Reference < K , V > next , LinkedList < ConcurrentReferenceHashMapTests . MockReference < K , V > > queue ) { } public Entry < K , V > get ( ) { } public int getHash ( ) { } public Reference < K , V > getNext ( ) { } public void release ( ) { } public void queueForPurge ( ) { } } }

Fix:
this . thrown . expectMessage ( "InitialCapacity<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>negative" ) ;