METHOD_0 ( ) { java . util . ArrayList < java . lang . String > IDENT_0 = IDENT_1 . IDENT_2 . core . collection . IDENT_3 . newArrayList ( "a" , "b" , "b" , STRING_0 , STRING_1 , STRING_2 ) ; java . util . ArrayList < java . lang . String > IDENT_4 = IDENT_1 . IDENT_2 . core . collection . IDENT_3 . newArrayList ( "a" , "b" , "b" , "b" , STRING_0 , STRING_1 ) ; java . util . Collection < java . lang . String > IDENT_5 = IDENT_1 . IDENT_2 . core . collection . IDENT_3 . METHOD_1 ( IDENT_0 , IDENT_4 ) ; "<AssertPlaceHolder>" ; } count ( java . lang . IDENT_6 , IDENT_1 . IDENT_2 . core . lang . IDENT_7 ) { int count = 0 ; if ( null != IDENT_8 ) { for ( T t : IDENT_8 ) { if ( ( null == matcher ) || ( matcher . match ( t ) ) ) { count ++ ; } } } return count ; }
org . junit . Assert . assertEquals ( 3 , IDENT_1 . IDENT_2 . core . collection . IDENT_3 . count ( METHOD_1 , new IDENT_1 . IDENT_2 . core . lang . IDENT_7 < java . lang . String > ( ) { @ IDENT_1 . IDENT_2 . core . collection . Override public boolean match ( java . lang . String t ) { return t . equals ( "b" ) ; } } ) )