METHOD_0 ( ) { IDENT_0 . IDENT_1 root = new IDENT_0 . METHOD_1 ( 6 ) ; root . METHOD_2 ( 4 ) . METHOD_3 ( 5 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( IDENT_0 . METHOD_1 ) { if ( node == null ) return null ; if ( ( node . IDENT_2 ) != null ) { return METHOD_5 ( node . IDENT_2 ) ; } IDENT_0 . METHOD_1 p = node . parent ; while ( ( p != null ) && ( ( p . parent ) != null ) ) { if ( ( p . parent . IDENT_3 ) == p ) { return p . parent ; } else { p = p . parent ; } } return p ; }
org . junit . Assert . assertEquals ( 6 , s . METHOD_4 ( root . IDENT_3 . IDENT_2 ) . val )