METHOD_0 ( ) { final org . IDENT_0 . IDENT_1 state = METHOD_1 ( ) . METHOD_2 ( "test" ) ; METHOD_1 ( ) . METHOD_3 ( new org . IDENT_0 . METHOD_4 ( ) { { METHOD_5 ( IDENT_2 ) . METHOD_6 ( ) ; when ( state . METHOD_7 ( STRING_0 ) ) ; METHOD_8 ( METHOD_9 ( STRING_1 3 ) ) ; METHOD_5 ( IDENT_3 ) . get ( ) ; when ( state . METHOD_7 ( STRING_0 ) ) ; METHOD_8 ( METHOD_9 ( new org . xwiki . model . reference . METHOD_10 ( STRING_2 , new org . xwiki . model . reference . METHOD_11 ( STRING_1 2 ) ) ) ) ; METHOD_5 ( IDENT_4 ) . get ( ) ; when ( state . METHOD_7 ( STRING_0 ) ) ; METHOD_8 ( METHOD_9 ( new org . xwiki . model . reference . METHOD_12 ( STRING_1 3 , STRING_2 , STRING_3 ) ) ) ; METHOD_5 ( IDENT_5 ) . METHOD_13 ( ) ; when ( state . METHOD_7 ( STRING_0 ) ) ; METHOD_8 ( METHOD_9 ( new org . xwiki . model . reference . METHOD_12 ( STRING_1 2 , STRING_4 , STRING_5 ) ) ) ; } } ) ; org . xwiki . component . manager . IDENT_6 IDENT_7 = METHOD_14 ( ) . getInstance ( org . xwiki . component . manager . IDENT_6 . class , STRING_6 ) ; org . xwiki . component . IDENT_8 . IDENT_9 < org . xwiki . component . internal . IDENT_10 . IDENT_11 > IDENT_12 = new org . xwiki . component . IDENT_8 . IDENT_9 < org . xwiki . component . internal . IDENT_10 . IDENT_11 > ( ) ; IDENT_12 . METHOD_15 ( org . xwiki . component . internal . IDENT_10 . IDENT_11 . class ) ; IDENT_12 . METHOD_16 ( org . xwiki . component . internal . IDENT_10 . IDENT_13 . class ) ; IDENT_7 . METHOD_17 ( IDENT_12 ) ; org . xwiki . component . manager . IDENT_6 IDENT_14 = METHOD_14 ( ) . getInstance ( org . xwiki . component . manager . IDENT_6 . class , STRING_7 ) ; "<AssertPlaceHolder>" ; state . METHOD_18 ( STRING_0 ) ; METHOD_1 ( ) . METHOD_3 ( new org . IDENT_0 . METHOD_4 ( ) { { METHOD_19 ( 1 ) . of ( IDENT_5 ) . METHOD_13 ( ) ; METHOD_8 ( METHOD_9 ( new org . xwiki . model . reference . METHOD_12 ( STRING_1 2 , STRING_4 , STRING_5 ) ) ) ; METHOD_5 ( IDENT_2 ) . METHOD_6 ( ) ; METHOD_8 ( METHOD_9 ( STRING_1 0 ) ) ; METHOD_5 ( IDENT_3 ) . get ( ) ; METHOD_8 ( METHOD_9 ( new org . xwiki . model . reference . METHOD_10 ( STRING_1 , new org . xwiki . model . reference . METHOD_11 ( STRING_1 0 ) ) ) ) ; METHOD_5 ( IDENT_4 ) . get ( ) ; METHOD_8 ( METHOD_9 ( new org . xwiki . model . reference . METHOD_12 ( STRING_1 0 , STRING_1 , STRING_8 ) ) ) ; } } ) ; try { IDENT_14 . getInstance ( org . xwiki . component . internal . IDENT_10 . IDENT_11 . class ) ; org . junit . Assert . fail ( STRING_1 1 ) ; } catch ( org . xwiki . component . manager . IDENT_15 expected ) { } } getInstance ( java . lang . Class ) { try { org . xwiki . component . manager . IDENT_6 IDENT_16 = this . IDENT_17 . get ( ) ; org . xwiki . rest . IDENT_18 component = IDENT_16 . getInstance ( org . xwiki . rest . IDENT_18 . class , clazz . getName ( ) ) ; org . xwiki . component . IDENT_8 . IDENT_19 < org . xwiki . rest . IDENT_18 > IDENT_20 = IDENT_16 . METHOD_20 ( org . xwiki . rest . IDENT_18 . class , clazz . getName ( ) ) ; org . xwiki . context . IDENT_21 IDENT_22 = this . IDENT_23 . METHOD_21 ( ) ; java . util . List < org . xwiki . rest . IDENT_18 > IDENT_24 = ( ( java . util . List < org . xwiki . rest . IDENT_18 > ) ( IDENT_22 . getProperty ( Constants . IDENT_25 ) ) ) ; if ( IDENT_24 == null ) { IDENT_24 = new java . util . ArrayList ( ) ; IDENT_22 . setProperty ( Constants . IDENT_25 , IDENT_24 ) ; } if ( ( IDENT_20 . METHOD_22 ( ) ) == ( org . xwiki . component . IDENT_8 . IDENT_26 . IDENT_27 ) ) { IDENT_24 . add ( component ) ; } return ( ( T ) ( component ) ) ; } catch ( org . xwiki . component . manager . IDENT_15 e ) { throw new org . IDENT_28 . ext . jaxrs . METHOD_23 ( e ) ; } }
org . junit . Assert . assertNotNull ( IDENT_14 . getInstance ( org . xwiki . component . internal . IDENT_10 . IDENT_11 . class ) )