METHOD_0 ( ) { org . kie . workbench . common . IDENT_0 . examples . model . IDENT_1 IDENT_2 = new org . kie . workbench . common . IDENT_0 . examples . model . METHOD_1 ( STRING_0 ) ; service . METHOD_2 ( IDENT_2 ) ; org . IDENT_3 . IDENT_4 . IDENT_5 . impl . IDENT_6 . IDENT_7 repository = mock ( org . IDENT_3 . IDENT_4 . IDENT_5 . impl . IDENT_6 . IDENT_7 . class ) ; java . util . Map < java . lang . String , java . lang . Object > IDENT_8 = new java . util . HashMap ( ) ; IDENT_8 . put ( STRING_1 , IDENT_2 . METHOD_3 ( ) ) ; when ( repository . METHOD_4 ( ) ) . thenReturn ( IDENT_8 ) ; service . METHOD_5 ( ) . add ( repository ) ; org . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_9 result = service . METHOD_6 ( IDENT_2 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_10 , METHOD_7 ( ) ) . METHOD_8 ( any ( org . IDENT_3 . IDENT_4 . server . config . IDENT_11 . class ) ) ; } METHOD_6 ( org . kie . workbench . common . IDENT_0 . examples . model . METHOD_1 ) { try { java . lang . String url = repository . METHOD_3 ( ) ; final java . lang . String IDENT_12 = METHOD_9 ( url ) ; org . kie . workbench . common . IDENT_0 . examples . model . IDENT_13 IDENT_14 = repository . METHOD_10 ( ) ; java . lang . String IDENT_15 = null ; java . lang . String IDENT_16 = null ; if ( IDENT_14 != null ) { IDENT_15 = IDENT_14 . METHOD_11 ( ) ; IDENT_16 = IDENT_14 . METHOD_12 ( ) ; } final java . util . Map < java . lang . String , java . lang . Object > IDENT_17 = this . METHOD_13 ( url , IDENT_15 , IDENT_16 , true ) ; final org . IDENT_3 . IDENT_4 . server . config . IDENT_11 IDENT_18 = METHOD_14 ( IDENT_12 , IDENT_17 ) ; org . IDENT_3 . IDENT_4 . IDENT_5 . IDENT_9 repo = IDENT_10 . METHOD_8 ( IDENT_18 ) ; IDENT_19 . add ( repo ) ; return repo ; } catch ( final java . lang . Exception e ) { logger . error ( STRING_2 , e ) ; throw new java . lang . RuntimeException ( e ) ; } }
org . junit . Assert . assertEquals ( repository , result )