question: protected void checkOrder ( int [ ] expected , String [ ] nodeIDs , List < String > actual ) { Assert . assertEquals ( expected . length , actual . size ( ) ) ; for ( int i = 0 ; i < expected . length ; i ++ ) { Assert . assertEquals ( "did not receive expected nodeID at " + i , nodeIDs [ expected [ i ] ] , actual . get ( i ) ) ; } }
target:  Check that the actual list of received nodeIDs correspond to the expected order of nodes