METHOD_0 ( ) { IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . IDENT_3 IDENT_4 = new IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . METHOD_1 ( STRING_0 ) ; java . util . List < IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . METHOD_1 > IDENT_5 = java . util . Collections . singletonList ( new IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . METHOD_1 ( STRING_0 ) ) ; when ( IDENT_6 . METHOD_2 ( any ( IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . IDENT_7 . class ) ) ) . thenReturn ( METHOD_3 ( IDENT_5 ) ) ; IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . METHOD_1 result = IDENT_0 . IDENT_1 . cs . IDENT_2 . cli . backend . IDENT_8 . METHOD_4 ( ctx , STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( IDENT_0 . IDENT_1 . cs . IDENT_2 . cli . core . IDENT_9 , java . lang . String ) { java . util . List < IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . METHOD_1 > IDENT_5 ; IDENT_5 = IDENT_0 . IDENT_1 . cs . IDENT_2 . cli . backend . IDENT_8 . METHOD_2 ( ctx ) ; for ( IDENT_0 . IDENT_1 . cs . IDENT_2 . core . domain . METHOD_1 item : IDENT_5 ) { if ( item . getName ( ) . equals ( name ) ) { return IDENT_0 . IDENT_1 . cs . IDENT_2 . cli . backend . IDENT_8 . METHOD_5 ( ctx , item ) ; } } return null ; }
org . junit . Assert . assertEquals ( IDENT_4 , result )