METHOD_0 ( ) { org . IDENT_0 . IDENT_1 . services . api . IDENT_2 query = mock ( org . IDENT_0 . IDENT_1 . services . api . IDENT_2 . class ) ; java . util . List < org . IDENT_0 . IDENT_1 . services . api . IDENT_3 > values = org . IDENT_0 . IDENT_1 . IDENT_4 . METHOD_1 ( org . IDENT_0 . IDENT_1 . services . api . IDENT_3 . class , org . IDENT_0 . IDENT_1 . services . backend . impl . IDENT_5 . IDENT_6 ) ; org . IDENT_0 . IDENT_1 . services . api . IDENT_7 . IDENT_8 list = new org . IDENT_0 . IDENT_1 . services . api . IDENT_7 . METHOD_2 ( values ) ; when ( IDENT_9 . METHOD_3 ( query ) ) . thenReturn ( list ) ; java . util . List < org . IDENT_0 . IDENT_1 . services . api . IDENT_3 > result = IDENT_10 . METHOD_3 ( query ) ; verify ( IDENT_9 , times ( 1 ) ) . METHOD_3 ( query ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . kie . workbench . common . IDENT_11 . IDENT_12 . management . service . IDENT_13 ) { METHOD_4 ( STRING_0 , query ) ; if ( query . METHOD_5 ( ) ) { org . kie . workbench . common . IDENT_11 . IDENT_12 . management . service . IDENT_14 result = new org . kie . workbench . common . IDENT_11 . IDENT_12 . management . service . METHOD_6 ( ) ; result . METHOD_7 ( IDENT_15 . METHOD_8 ( true ) ) ; result . METHOD_9 ( IDENT_15 . METHOD_10 ( ) ) ; return result ; } else { return METHOD_11 ( query ) ; } }
org . junit . Assert . assertEquals ( values , result )