METHOD_0 ( ) { doReturn ( new org . IDENT_0 . data . METHOD_1 ( org . IDENT_0 . data . internal . controller . IDENT_1 . IDENT_2 , org . IDENT_0 . data . internal . controller . IDENT_1 . IDENT_3 ) ) . when ( this . IDENT_4 ) . METHOD_2 ( org . IDENT_0 . data . internal . controller . IDENT_1 . IDENT_2 ) ; org . json . JSONObject json = new org . json . JSONObject ( ) ; this . component . METHOD_3 ( this . IDENT_4 , json ) ; "<AssertPlaceHolder>" ; } get ( org . xwiki . model . reference . IDENT_5 ) { try { org . xwiki . IDENT_6 . IDENT_7 document = this . IDENT_6 . METHOD_4 ( reference ) ; if ( ( document == null ) || ( ( ( com . IDENT_8 . xwiki . doc . IDENT_9 ) ( document ) ) . METHOD_5 ( ) ) ) { return null ; } return load ( document ) ; } catch ( java . lang . Exception ex ) { this . logger . error ( STRING_0 , reference , ex . getMessage ( ) ) ; } return null ; }
org . junit . Assert . assertEquals ( org . IDENT_0 . data . internal . controller . IDENT_1 . IDENT_3 , json . get ( org . IDENT_0 . data . internal . controller . IDENT_1 . IDENT_2 ) )