METHOD_0 ( ) { com . facebook . buck . core . rules . IDENT_0 IDENT_1 = com . facebook . buck . shell . IDENT_2 . METHOD_1 ( com . facebook . buck . core . model . IDENT_3 . newInstance ( STRING_0 ) ) . METHOD_2 ( STRING_1 ) . build ( IDENT_4 ) ; com . facebook . buck . core . rules . IDENT_0 IDENT_5 = com . facebook . buck . shell . IDENT_2 . METHOD_1 ( com . facebook . buck . core . model . IDENT_3 . newInstance ( STRING_2 ) ) . METHOD_2 ( STRING_3 ) . METHOD_3 ( com . google . common . collect . ImmutableList . of ( IDENT_1 . METHOD_4 ( ) ) ) . build ( IDENT_4 ) ; com . facebook . buck . core . rules . IDENT_0 IDENT_6 = com . facebook . buck . shell . IDENT_2 . METHOD_1 ( com . facebook . buck . core . model . IDENT_3 . newInstance ( STRING_4 ) ) . METHOD_2 ( STRING_5 ) . METHOD_3 ( com . google . common . collect . ImmutableList . of ( IDENT_5 . METHOD_4 ( ) ) ) . build ( IDENT_4 ) ; try ( com . facebook . buck . core . build . engine . impl . IDENT_7 IDENT_8 = METHOD_5 ( ) . METHOD_6 ( new com . facebook . buck . core . build . engine . delegate . METHOD_7 ( IDENT_9 ) ) . build ( ) ) { "<AssertPlaceHolder>" ; } } METHOD_0 ( java . lang . IDENT_10 ) { java . util . Set < com . facebook . buck . core . rules . IDENT_0 > IDENT_11 = com . google . common . collect . IDENT_12 . METHOD_8 ( ) ; com . google . common . collect . ImmutableList . Builder < com . google . common . util . concurrent . IDENT_13 < ? > > results = com . google . common . collect . ImmutableList . builder ( ) ; for ( com . facebook . buck . core . rules . IDENT_0 rule : rules ) { if ( IDENT_11 . add ( rule ) ) { results . add ( METHOD_9 ( rule , IDENT_11 ) ) ; } } com . google . common . util . concurrent . IDENT_14 . METHOD_10 ( com . google . common . util . concurrent . IDENT_14 . METHOD_11 ( results . build ( ) ) ) ; return IDENT_11 . size ( ) ; }
org . junit . Assert . assertThat ( IDENT_8 . METHOD_0 ( com . google . common . collect . ImmutableList . of ( IDENT_6 ) ) , org . hamcrest . Matchers . equalTo ( 3 ) )