METHOD_0 ( ) { java . lang . Object result = mock ( java . lang . Object . class ) ; when ( IDENT_0 . METHOD_1 ( java . lang . Object . class . getName ( ) ) ) . thenReturn ( IDENT_1 ) ; when ( IDENT_0 . METHOD_2 ( IDENT_1 ) ) . thenReturn ( result ) ; java . lang . Object IDENT_2 = org . IDENT_3 . service . util . internal . utils . IDENT_4 . METHOD_2 ( IDENT_0 , java . lang . Object . class , ( ( java . util . List < org . osgi . framework . IDENT_5 < ? > > ) ( mock ( java . util . List . class ) ) ) ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . osgi . framework . IDENT_6 , java . lang . Class , java . util . List ) { try { org . osgi . framework . IDENT_5 < ? > ref = IDENT_0 . METHOD_1 ( IDENT_7 . getName ( ) ) ; if ( ref == null ) throw new java . lang . METHOD_3 ( ( STRING_0 + ( IDENT_7 . getName ( ) ) ) ) ; if ( IDENT_8 != null ) IDENT_8 . add ( ref ) ; return IDENT_7 . METHOD_4 ( IDENT_0 . METHOD_2 ( ref ) ) ; } catch ( java . lang . Exception e ) { throw new java . lang . RuntimeException ( ( STRING_1 + ( IDENT_7 . getName ( ) ) ) , e ) ; } }
org . junit . Assert . assertEquals ( result , IDENT_2 )