METHOD_0 ( ) { org . apache . IDENT_0 . di . spi . IDENT_1 < java . lang . String > graph = new org . apache . IDENT_0 . di . spi . METHOD_1 ( ) ; graph . add ( STRING_0 , STRING_1 ) ; graph . add ( STRING_0 , STRING_2 ) ; graph . add ( STRING_2 , "a" ) ; java . util . List < java . lang . String > IDENT_2 = graph . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { org . apache . IDENT_0 . di . spi . Map < IDENT_3 , java . lang . Integer > IDENT_4 = METHOD_3 ( ) ; org . apache . IDENT_0 . di . spi . IDENT_5 < IDENT_3 > IDENT_6 = new org . apache . IDENT_0 . di . spi . METHOD_4 ( ) ; org . apache . IDENT_0 . di . spi . IDENT_7 < IDENT_3 > result = new org . apache . IDENT_0 . di . spi . METHOD_5 ( ) ; for ( Map . Entry < IDENT_3 , java . lang . Integer > entry : IDENT_4 . entrySet ( ) ) { if ( ( entry . getValue ( ) ) == 0 ) { IDENT_6 . METHOD_6 ( entry . getKey ( ) ) ; } } while ( ! ( IDENT_6 . isEmpty ( ) ) ) { IDENT_3 v = IDENT_6 . METHOD_7 ( ) ; result . METHOD_6 ( v ) ; for ( IDENT_3 IDENT_8 : IDENT_9 . get ( v ) ) { IDENT_4 . put ( IDENT_8 , ( ( IDENT_4 . get ( IDENT_8 ) ) - 1 ) ) ; if ( ( IDENT_4 . get ( IDENT_8 ) ) == 0 ) { IDENT_6 . METHOD_6 ( IDENT_8 ) ; } } } if ( ( result . size ( ) ) != ( IDENT_9 . size ( ) ) ) { throw new org . apache . IDENT_0 . di . METHOD_8 ( STRING_3 ) ; } return result ; }
org . junit . Assert . assertEquals ( asList ( STRING_1 , "a" , STRING_2 , STRING_0 ) , IDENT_2 )