METHOD_0 ( ) { org . xwiki . component . manager . IDENT_0 IDENT_1 = this . IDENT_2 . getInstance ( org . xwiki . component . manager . IDENT_0 . class , STRING_0 ) ; java . util . List < org . IDENT_3 . IDENT_4 . IDENT_5 > IDENT_6 = new java . util . ArrayList ( ) ; IDENT_6 . add ( org . mockito . Mockito . mock ( org . IDENT_3 . IDENT_4 . IDENT_5 . class ) ) ; when ( IDENT_1 . < org . IDENT_3 . IDENT_4 . IDENT_5 > METHOD_1 ( org . IDENT_3 . IDENT_4 . IDENT_5 . class ) ) . thenReturn ( IDENT_6 ) ; java . util . List < org . IDENT_3 . IDENT_4 . IDENT_5 > response = this . IDENT_2 . METHOD_2 ( ) . METHOD_3 ( ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( ) { try { java . util . List < org . IDENT_3 . IDENT_4 . IDENT_5 > result = this . IDENT_7 . get ( ) . METHOD_1 ( org . IDENT_3 . IDENT_4 . IDENT_5 . class ) ; if ( result == null ) { result = java . util . Collections . emptyList ( ) ; } java . util . Collections . METHOD_4 ( result , org . IDENT_3 . IDENT_4 . script . IDENT_8 . IDENT_9 . instance ) ; return result ; } catch ( org . xwiki . component . manager . IDENT_10 ex ) { this . logger . warn ( STRING_1 , ex ) ; return java . util . Collections . emptyList ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_6 , response )