METHOD_0 ( ) { when ( delegate . METHOD_1 ( org . mockito . Matchers . any ( org . IDENT_0 . IDENT_1 . results . IDENT_2 . class ) ) ) . thenReturn ( true ) ; org . IDENT_0 . IDENT_1 . IDENT_3 IDENT_4 = METHOD_2 ( IDENT_5 . METHOD_3 ( ) , new org . IDENT_0 . media . entity . METHOD_4 ( STRING_0 , STRING_1 , org . IDENT_0 . media . entity . IDENT_6 . IDENT_7 ) ) ; when ( IDENT_8 . METHOD_5 ( METHOD_6 ( org . hamcrest . Matchers . METHOD_7 ( subject . METHOD_8 ( ) . METHOD_9 ( ) ) ) ) ) . thenReturn ( com . IDENT_9 . common . collect . IDENT_10 . METHOD_10 ( com . google . common . collect . ImmutableMap . of ( subject . METHOD_8 ( ) . METHOD_9 ( ) , com . google . common . base . Optional . of ( IDENT_4 ) ) ) ) ; org . IDENT_0 . media . entity . IDENT_11 IDENT_1 = new org . IDENT_0 . media . entity . METHOD_11 ( STRING_2 , STRING_3 , org . IDENT_0 . media . entity . IDENT_6 . IDENT_7 ) ; IDENT_1 . METHOD_12 ( new org . IDENT_0 . media . entity . METHOD_13 ( STRING_4 ) ) ; com . google . common . collect . IDENT_12 < org . IDENT_0 . media . entity . IDENT_6 , org . IDENT_0 . IDENT_1 . results . IDENT_13 . IDENT_14 < org . IDENT_0 . media . entity . IDENT_15 > > IDENT_16 = com . google . common . collect . IDENT_12 . of ( IDENT_6 . IDENT_7 , org . IDENT_0 . IDENT_1 . results . IDENT_13 . IDENT_14 . < org . IDENT_0 . media . entity . IDENT_15 > valueOf ( IDENT_1 , IDENT_17 . IDENT_18 ) ) ; org . IDENT_0 . IDENT_1 . results . IDENT_2 < org . IDENT_0 . media . entity . IDENT_15 > result = new org . IDENT_0 . IDENT_1 . results . IDENT_2 < org . IDENT_0 . media . entity . IDENT_15 > ( subject , IDENT_19 , IDENT_20 , IDENT_16 , new org . IDENT_0 . IDENT_1 . results . description . METHOD_14 ( ) ) ; org . IDENT_0 . IDENT_1 . IDENT_21 . IDENT_22 < org . IDENT_0 . media . entity . IDENT_15 > handler = org . IDENT_0 . IDENT_1 . IDENT_21 . IDENT_23 . METHOD_15 ( delegate , IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( org . IDENT_0 . IDENT_1 . results . IDENT_24 ) { org . IDENT_0 . IDENT_1 . results . description . IDENT_25 IDENT_26 = results . description ( ) . METHOD_16 ( STRING_5 ) ; org . IDENT_0 . media . entity . METHOD_13 container = results . subject ( ) . METHOD_8 ( ) ; if ( container == null ) { IDENT_26 . METHOD_17 ( STRING_6 ) . METHOD_18 ( ) ; return delegate . METHOD_1 ( results ) ; } java . lang . String IDENT_27 = container . METHOD_9 ( ) ; com . google . common . base . Optional < org . IDENT_0 . IDENT_1 . IDENT_3 > IDENT_28 = IDENT_8 . METHOD_5 ( com . google . common . collect . IDENT_29 . of ( IDENT_27 ) ) . get ( IDENT_27 ) ; if ( ! ( IDENT_28 . METHOD_19 ( ) ) ) { IDENT_26 . METHOD_17 ( STRING_7 ) . METHOD_18 ( ) ; throw new org . IDENT_0 . IDENT_1 . IDENT_21 . METHOD_20 ( results . subject ( ) ) ; } org . IDENT_0 . IDENT_1 . IDENT_3 METHOD_2 = IDENT_28 . get ( ) ; com . google . common . collect . IDENT_30 < org . IDENT_0 . media . entity . IDENT_6 , org . IDENT_0 . IDENT_1 . IDENT_31 > IDENT_32 = METHOD_2 . METHOD_21 ( ) ; java . util . List < org . IDENT_0 . IDENT_1 . results . IDENT_2 < org . IDENT_0 . media . entity . IDENT_15 > > IDENT_33 = results . METHOD_22 ( ) . stream ( ) . map ( ( result ) -> new org . IDENT_0 . IDENT_1 . IDENT_21 . IDENT_2 < > ( result . subject ( ) , result . METHOD_23 ( ) , result . METHOD_24 ( ) , filter ( result . METHOD_25 ( ) , IDENT_32 , IDENT_26 ) , result . description ( ) ) ) . collect ( com . IDENT_9 . common . stream . IDENT_34 . METHOD_26 ( ) ) ; IDENT_26 . METHOD_18 ( ) ; return delegate . METHOD_1 ( new org . IDENT_0 . IDENT_1 . results . METHOD_27 ( results . subject ( ) , IDENT_33 , ( ( org . IDENT_0 . IDENT_1 . results . description . IDENT_35 ) ( IDENT_26 ) ) ) ) ; }
org . junit . Assert . assertThat ( handler . METHOD_1 ( result ) , org . hamcrest . core . Is . is ( true ) )