METHOD_0 ( ) { com . IDENT_0 . xwiki . doc . IDENT_1 doc = mock ( com . IDENT_0 . xwiki . doc . IDENT_1 . class ) ; com . IDENT_0 . xwiki . IDENT_2 . IDENT_3 IDENT_4 = mock ( com . IDENT_0 . xwiki . IDENT_2 . IDENT_3 . class ) ; when ( IDENT_4 . getName ( ) ) . thenReturn ( org . IDENT_5 . data . internal . IDENT_6 . IDENT_7 ) ; java . util . List < com . IDENT_0 . xwiki . IDENT_2 . IDENT_8 > IDENT_9 = new java . util . ArrayList ( ) ; IDENT_9 . add ( null ) ; com . IDENT_0 . xwiki . IDENT_2 . IDENT_8 IDENT_10 = mock ( com . IDENT_0 . xwiki . IDENT_2 . IDENT_8 . class ) ; com . IDENT_0 . xwiki . IDENT_2 . IDENT_11 IDENT_12 = new com . IDENT_0 . xwiki . IDENT_2 . METHOD_1 ( ) ; IDENT_12 . setValue ( org . IDENT_5 . data . internal . IDENT_6 . IDENT_7 ) ; when ( IDENT_10 . get ( STRING_0 ) ) . thenReturn ( IDENT_12 ) ; IDENT_12 = new com . IDENT_0 . xwiki . IDENT_2 . METHOD_1 ( ) ; IDENT_12 . setValue ( org . IDENT_5 . data . internal . IDENT_6 . IDENT_13 ) ; when ( IDENT_10 . get ( STRING_1 ) ) . thenReturn ( IDENT_12 ) ; java . util . List < java . lang . String > IDENT_14 = new java . util . ArrayList ( ) ; IDENT_14 . add ( org . IDENT_5 . data . internal . IDENT_6 . IDENT_15 ) ; IDENT_14 . add ( org . IDENT_5 . data . internal . IDENT_6 . IDENT_16 ) ; when ( IDENT_10 . METHOD_2 ( STRING_2 ) ) . thenReturn ( IDENT_14 ) ; IDENT_9 . add ( IDENT_10 ) ; when ( doc . METHOD_3 ( new org . xwiki . model . reference . METHOD_4 ( STRING_3 , org . xwiki . model . IDENT_17 . IDENT_18 , org . IDENT_5 . Constants . IDENT_19 ) ) ) . thenReturn ( IDENT_9 ) ; org . json . JSONObject json = new org . IDENT_5 . data . internal . METHOD_5 ( doc , IDENT_4 , org . IDENT_5 . data . internal . IDENT_6 . IDENT_13 ) . METHOD_6 ( ) ; org . json . IDENT_20 IDENT_21 = json . METHOD_7 ( STRING_4 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( ) { org . json . JSONObject json = new org . json . JSONObject ( ) ; json . put ( STRING_5 , this . getId ( ) ) ; return json ; }
org . junit . Assert . assertEquals ( 2 , IDENT_21 . length ( ) )