Buggy code:
public class SimTest { private static final long TIMEOUT_MS = 300000 ; private static final int CYCLES_TIMER_EXPIRE = 10 ; @ Rule public final GuiceBerryRule guiceBerry = new GuiceBerryRule ( SimTestGuiceBerryEnv . class ) ; @ Inject private Provider < PickNextPlayerClient > pickNextPlayerClientProvider ; @ Inject private Provider < BadLoginClient > badLoginClientProvider ; @ Inject private Provider < FuzzClient > fuzzClientProvider ; @ Inject private DraftTowerWebSocketServlet webSocketServlet ; @ Inject private ChangePlayerRankServlet changePlayerRankServlet ; @ Inject private CopyAllPlayerRanksServlet copyAllPlayerRanksServlet ; @ Inject private GraphsServlet graphsServlet ; @ Inject private LoginServlet loginServlet ; @ Inject private QueueServlet queueServlet ; @ Inject private SetAutoPickWizardServlet setAutoPickWizardServlet ; @ Inject private UnclaimedPlayerLookupServlet unclaimedPlayerLookupServlet ; @ Inject private DraftStatus draftStatus ; @ Inject private DraftTimer draftTimer ; @ Inject private PlayerDataSource playerDataSource ; @ Inject private PickProbabilityPredictor pickProbabilityPredictor ; @ Inject private Lock lock ; @ Inject private TearDownAccepter tearDownAccepter ; private final List < SimulatedClient > clients = new ArrayList < > ( ) ; private final List < Throwable > clientExceptions = new ArrayList < > ( ) ; @ After public void resetClients ( ) { } @ Test public void allPickNextPlayer ( ) { } @ Test public void duplicateTeams ( ) { } @ Test public void flakyConnections ( ) { } @ Test public void persistentBadLogin ( ) { } @ Test public void fuzzTest ( ) { } protected void run ( ) { } private void endDraftAndWaitForThreads ( List < Thread > threads ) { } private void verify ( ) { } private void verifyDraftStatus ( ) { try ( Lock ignored = lock . lock ( ) ) { Set < Long > selectedPlayerIds = new HashSet < > ( ) ; List < DraftPick > picks = draftStatus . getPicks ( ) ; for ( int i = 0 ; i < ( picks . size ( ) ) ; i ++ ) { DraftPick draftPick = picks . get ( i ) ; Assert . assertFalse ( ( "Duplicate<seq2seq4repair_space>player<seq2seq4repair_space>selected:<seq2seq4repair_space>" + ( draftPick . getPlayerId ( ) ) ) , selectedPlayerIds . contains ( draftPick . getPlayerId ( ) ) ) ; selectedPlayerIds . add ( draftPick . getPlayerId ( ) ) ; Assert . assertEquals ( ( "Wrong<seq2seq4repair_space>team<seq2seq4repair_space>on<seq2seq4repair_space>pick<seq2seq4repair_space>" + i ) , draftPick . getTeam ( ) , ( ( i % 10 ) + 1 ) ) ; } Assert . assertEquals ( "Wrong<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>unavailable<seq2seq4repair_space>players" , draftStatus . getPicks ( ) . size ( ) , ( ( ( ( TestPlayerDataSource ) ( playerDataSource ) ) . getAllPlayers ( ) . size ( ) ) - ( ( ( TestPlayerDataSource ) ( playerDataSource ) ) . getAvailablePlayers ( ) . size ( ) ) ) ) ; Assert . assertEquals ( "Wrong<seq2seq4repair_space>current<seq2seq4repair_space>team" , draftStatus . getCurrentTeam ( ) , ( ( ( draftStatus . getPicks ( ) . size ( ) ) % 10 ) + 1 ) ) ; Map < Long , Float > predictions = pickProbabilityPredictor . getTeamPredictions ( new TeamDraftOrder ( draftStatus . getCurrentTeam ( ) ) ) ; for ( Long predictionPlayer : predictions . keySet ( ) ) { <START_BUG> Assert . assertFalse ( "Predictions<seq2seq4repair_space>for<seq2seq4repair_space>current<seq2seq4repair_space>team<seq2seq4repair_space>include<seq2seq4repair_space>selected<seq2seq4repair_space>player" , selectedPlayerIds . contains ( predictionPlayer ) ) ; <END_BUG> } } } No newline ; at end ; of file ; }

Fix:
Assert . assertFalse ( ( "Predictions<seq2seq4repair_space>for<seq2seq4repair_space>current<seq2seq4repair_space>team<seq2seq4repair_space>include<seq2seq4repair_space>selected<seq2seq4repair_space>player<seq2seq4repair_space>" + predictionPlayer ) , selectedPlayerIds . contains ( predictionPlayer ) ) ;