METHOD_0 ( ) { IDENT_0 . METHOD_1 ( IDENT_1 ) ; IDENT_1 . METHOD_1 ( IDENT_2 ) ; IDENT_2 . METHOD_1 ( IDENT_3 ) ; java . util . List < org . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 > IDENT_8 = new java . util . ArrayList ( java . util . Arrays . asList ( IDENT_2 ) ) ; java . util . List < org . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 > expected = new java . util . ArrayList ( java . util . Arrays . asList ( IDENT_2 , IDENT_1 ) ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . IDENT_4 . IDENT_5 . IDENT_6 . Collection ) { org . IDENT_4 . IDENT_5 . IDENT_6 . List < org . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 > IDENT_9 = new org . IDENT_4 . IDENT_5 . IDENT_6 . ArrayList ( ) ; org . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 unit = parent ; while ( unit != null ) { IDENT_9 . add ( unit ) ; if ( ( IDENT_8 != null ) && ( IDENT_8 . contains ( unit ) ) ) { break ; } unit = unit . METHOD_3 ( ) ; } org . IDENT_4 . IDENT_5 . IDENT_6 . Collections . METHOD_4 ( IDENT_9 ) ; return IDENT_9 ; }
org . junit . Assert . assertEquals ( expected , IDENT_0 . METHOD_2 ( IDENT_8 ) )