question: private static < T > void assertCollectionEqualsNoOrder ( Collection < T > expected , Collection < T > actual ) { String msg = String . format ( "expected=%s, actual=%s" , expected . toString ( ) , actual . toString ( ) ) ; assertEquals ( msg , expected . size ( ) , actual . size ( ) ) ; for ( T e : expected ) { if ( ! actual . contains ( e ) ) { msg = String . format ( "Expected element %s not found in " + "actual. expected=%s, actual=%s" , e , expected , actual ) ; fail ( msg ) ; } } }
target:  Test whether two collections contains the same elements, regardless of the order in which the elements appear in the collections