METHOD_0 ( ) { final org . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 repository = mock ( org . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . class ) ; final org . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_4 IDENT_5 = new org . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_1 ( org . IDENT_0 . IDENT_6 . ui . backend . service . IDENT_7 . IDENT_8 , mock ( org . IDENT_9 . backend . IDENT_10 . Path . class ) ) ; doReturn ( java . util . Optional . of ( IDENT_5 ) ) . when ( repository ) . METHOD_2 ( eq ( org . IDENT_0 . IDENT_6 . ui . backend . service . IDENT_7 . IDENT_8 ) ) ; @ org . IDENT_0 . IDENT_6 . ui . backend . service . METHOD_3 ( STRING_0 ) final java . util . Set < org . IDENT_0 . common . services . project . model . IDENT_11 > IDENT_12 = mock ( java . util . Set . class ) ; when ( IDENT_13 . METHOD_4 ( org . IDENT_0 . IDENT_6 . ui . backend . service . IDENT_7 . IDENT_14 , org . IDENT_0 . IDENT_6 . ui . backend . service . IDENT_7 . IDENT_15 ) ) . thenReturn ( repository ) ; when ( IDENT_16 . METHOD_5 ( IDENT_5 ) ) . thenReturn ( IDENT_12 ) ; final java . util . Collection < org . IDENT_0 . common . services . project . model . IDENT_11 > result = service . METHOD_6 ( org . IDENT_0 . IDENT_6 . ui . backend . service . IDENT_7 . IDENT_14 , org . IDENT_0 . IDENT_6 . ui . backend . service . IDENT_7 . IDENT_15 , org . IDENT_0 . IDENT_6 . ui . backend . service . IDENT_7 . IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( org . IDENT_9 . IDENT_17 . IDENT_18 , java . lang . String , java . lang . String ) { METHOD_7 ( STRING_1 , IDENT_19 ) ; METHOD_7 ( STRING_2 , IDENT_20 ) ; final org . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 repository = IDENT_13 . METHOD_4 ( IDENT_21 , IDENT_19 ) ; if ( repository == null ) { return new java . util . ArrayList ( ) ; } else { final java . util . Optional < org . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_1 > IDENT_5 = repository . METHOD_2 ( IDENT_20 ) ; if ( IDENT_5 . METHOD_8 ( ) ) { return IDENT_16 . METHOD_5 ( IDENT_5 . get ( ) ) ; } else { return new java . util . ArrayList ( ) ; } } }
org . junit . Assert . assertEquals ( IDENT_12 , result )