METHOD_0 ( ) { org . osgi . service . IDENT_0 . IDENT_1 IDENT_2 = org . mockito . Mockito . mock ( org . osgi . service . IDENT_0 . IDENT_1 . class ) ; org . osgi . framework . IDENT_3 IDENT_4 = org . mockito . Mockito . mock ( org . osgi . framework . IDENT_3 . class ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_1 ( ) ) . thenReturn ( org . osgi . framework . IDENT_5 . METHOD_2 ( STRING_0 ) ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_3 ( ) ) . thenReturn ( true ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_4 ( ) ) . thenReturn ( IDENT_4 ) ; org . mockito . Mockito . when ( IDENT_4 . METHOD_5 ( ) ) . thenReturn ( java . lang . Long . valueOf ( 2 ) ) ; org . mockito . Mockito . when ( admin . METHOD_6 ( org . mockito . Mockito . anyString ( ) ) ) . thenReturn ( new org . osgi . service . IDENT_0 . IDENT_1 [ ] { IDENT_2 } ) ; boolean IDENT_6 = IDENT_7 . METHOD_3 ( "test" , STRING_0 , java . lang . Long . valueOf ( 2 ) ) ; "<AssertPlaceHolder>" ; } valueOf ( org . osgi . resource . IDENT_8 ) { java . lang . String IDENT_9 = IDENT_10 . METHOD_7 ( ) ; if ( ! ( IDENT_11 . IDENT_12 . equals ( IDENT_9 ) ) ) { throw new java . lang . IllegalArgumentException ( ( STRING_1 + IDENT_9 ) ) ; } java . util . Map < java . lang . String , org . apache . IDENT_13 . IDENT_14 . core . IDENT_15 . IDENT_16 > parameters = new java . util . HashMap < java . lang . String , org . apache . IDENT_13 . IDENT_14 . core . IDENT_15 . IDENT_16 > ( ) ; java . lang . String filter = null ; java . util . Map < java . lang . String , java . lang . String > IDENT_17 = IDENT_10 . METHOD_8 ( ) ; for ( Map . Entry < java . lang . String , java . lang . String > entry : IDENT_17 . entrySet ( ) ) { java . lang . String key = entry . getKey ( ) ; if ( IDENT_11 . IDENT_18 . equals ( key ) ) { filter = entry . getValue ( ) ; } else { parameters . put ( key , org . apache . IDENT_13 . IDENT_14 . core . IDENT_15 . IDENT_19 . METHOD_9 ( key , entry . getValue ( ) ) ) ; } } java . util . Map < java . lang . String , java . util . List < org . apache . IDENT_13 . IDENT_14 . core . IDENT_20 . IDENT_21 > > attributes = org . apache . IDENT_13 . IDENT_14 . core . IDENT_20 . IDENT_21 . attributes ( filter ) ; java . lang . String path = java . lang . String . valueOf ( attributes . remove ( org . osgi . framework . Constants . IDENT_22 ) . get ( 0 ) . getValue ( ) ) ; java . util . Map < java . lang . String , java . lang . Object > map = new java . util . HashMap < java . lang . String , java . lang . Object > ( attributes . size ( ) ) ; for ( Map . Entry < java . lang . String , java . util . List < org . apache . IDENT_13 . IDENT_14 . core . IDENT_20 . IDENT_21 > > entry : attributes . entrySet ( ) ) { map . put ( entry . getKey ( ) , entry . getValue ( ) . get ( 0 ) . getValue ( ) ) ; } if ( ! ( map . isEmpty ( ) ) ) { parameters . put ( IDENT_11 . IDENT_18 , org . apache . IDENT_13 . IDENT_14 . core . IDENT_15 . IDENT_19 . METHOD_9 ( IDENT_11 . IDENT_18 , org . apache . IDENT_13 . IDENT_14 . core . IDENT_20 . IDENT_21 . convert ( map ) . toString ( ) ) ) ; } return new org . apache . IDENT_13 . IDENT_14 . core . IDENT_15 . IDENT_23 . METHOD_10 ( path , parameters , org . apache . IDENT_13 . IDENT_14 . core . IDENT_15 . IDENT_23 . METHOD_10 . IDENT_24 ) ; }
org . junit . Assert . assertTrue ( IDENT_6 )