METHOD_0 ( ) { java . util . Collection < java . lang . String > IDENT_0 = java . util . Arrays . asList ( STRING_0 , STRING_1 ) ; when ( IDENT_1 . METHOD_0 ( ) ) . thenReturn ( IDENT_0 ) ; java . util . Collection < java . lang . String > result = IDENT_2 . METHOD_1 ( ) . METHOD_0 ( ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( ) { java . util . Collection < java . lang . String > IDENT_0 = this . cache . METHOD_2 ( ) ; if ( IDENT_0 == null ) { java . util . List < java . lang . String > IDENT_3 ; try { IDENT_3 = this . IDENT_4 . get ( ) . METHOD_3 ( ) ; } catch ( java . lang . Exception e ) { throw new org . xwiki . IDENT_5 . manager . METHOD_4 ( STRING_2 , e ) ; } IDENT_0 = new java . util . HashSet < java . lang . String > ( IDENT_3 . size ( ) ) ; boolean IDENT_6 = false ; com . IDENT_7 . xwiki . IDENT_8 IDENT_9 = this . IDENT_10 . get ( ) ; for ( java . lang . String IDENT_11 : IDENT_3 ) { java . lang . String IDENT_12 = this . IDENT_4 . get ( ) . METHOD_5 ( IDENT_11 ) ; IDENT_0 . add ( IDENT_12 ) ; IDENT_6 OP_0 IDENT_9 . METHOD_6 ( IDENT_12 ) ; } if ( ! IDENT_6 ) { IDENT_0 . add ( METHOD_7 ( ) ) ; } this . cache . METHOD_8 ( java . util . Collections . METHOD_9 ( IDENT_0 ) ) ; } return IDENT_0 ; }
org . junit . Assert . assertEquals ( IDENT_0 , result )