METHOD_0 ( ) { org . IDENT_0 . media . entity . IDENT_1 IDENT_2 = new org . IDENT_0 . media . entity . METHOD_1 ( STRING_0 , "b" , IDENT_3 ) ; IDENT_2 . METHOD_2 ( STRING_0 ) ; org . IDENT_0 . media . entity . IDENT_4 IDENT_5 = new org . IDENT_0 . media . entity . METHOD_3 ( STRING_1 , STRING_2 , IDENT_3 ) ; IDENT_5 . METHOD_2 ( STRING_1 ) ; IDENT_5 . METHOD_4 ( IDENT_2 ) ; IDENT_5 . METHOD_5 ( 4 ) ; org . IDENT_0 . media . entity . IDENT_6 IDENT_7 = new org . IDENT_0 . media . entity . METHOD_6 ( STRING_3 , STRING_4 , IDENT_3 ) ; IDENT_7 . METHOD_7 ( IDENT_2 ) ; IDENT_7 . METHOD_8 ( IDENT_5 ) ; for ( java . util . List < org . IDENT_0 . media . entity . IDENT_8 > IDENT_9 : com . google . common . collect . IDENT_10 . METHOD_9 ( com . google . common . collect . ImmutableList . of ( IDENT_2 , IDENT_5 , IDENT_7 ) ) ) { org . mockito . IDENT_11 . IDENT_12 < com . google . common . base . Optional < org . IDENT_0 . media . entity . IDENT_8 > > IDENT_11 = when ( IDENT_13 . METHOD_10 ( org . IDENT_0 . IDENT_14 . IDENT_15 . IDENT_16 . IDENT_17 ) ) ; for ( org . IDENT_0 . media . entity . IDENT_8 content : IDENT_9 ) { IDENT_11 = IDENT_11 . thenReturn ( com . google . common . base . Optional . of ( content ) ) ; } when ( resolver . METHOD_11 ( org . mockito . Matchers . < java . lang . IDENT_18 < java . lang . String > > any ( ) ) ) . thenReturn ( org . IDENT_0 . IDENT_14 . IDENT_15 . IDENT_16 . IDENT_19 ) ; handler . METHOD_12 ( ) ; for ( int i = 0 ; i < ( IDENT_9 . size ( ) ) ; i ++ ) { handler . METHOD_13 ( org . IDENT_0 . IDENT_14 . IDENT_15 . IDENT_16 . IDENT_17 ) ; } handler . METHOD_14 ( ) ; org . mockito . IDENT_20 IDENT_21 = METHOD_15 ( writer ) ; METHOD_15 . verify ( writer , times ( 1 ) ) . METHOD_16 ( IDENT_2 ) ; METHOD_15 . verify ( writer , times ( 1 ) ) . METHOD_16 ( IDENT_5 ) ; METHOD_15 . verify ( writer , times ( 1 ) ) . METHOD_16 ( IDENT_7 ) ; METHOD_15 . METHOD_17 ( ) ; METHOD_18 ( writer ) ; "<AssertPlaceHolder>" ; IDENT_7 . METHOD_19 ( null ) ; } } METHOD_20 ( ) { return IDENT_22 ; }
org . junit . Assert . assertThat ( IDENT_7 . METHOD_20 ( ) , org . hamcrest . Matchers . is ( 4 ) )