METHOD_0 ( ) { org . osgi . service . IDENT_0 . IDENT_1 IDENT_2 = org . mockito . Mockito . mock ( org . osgi . service . IDENT_0 . IDENT_1 . class ) ; org . mockito . Mockito . when ( IDENT_2 . getType ( ) ) . thenReturn ( IDENT_3 . IDENT_4 ) ; org . mockito . Mockito . when ( IDENT_2 . getName ( ) ) . thenReturn ( STRING_0 ) ; org . osgi . service . IDENT_0 . User IDENT_5 = org . mockito . Mockito . mock ( org . osgi . service . IDENT_0 . IDENT_1 . class ) ; org . mockito . Mockito . when ( IDENT_5 . getName ( ) ) . thenReturn ( STRING_1 ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_1 ( ) ) . thenReturn ( new org . osgi . service . IDENT_0 . IDENT_3 [ ] { IDENT_5 } ) ; org . mockito . Mockito . when ( IDENT_6 . METHOD_2 ( STRING_0 ) ) . thenReturn ( IDENT_2 ) ; java . lang . String [ ] IDENT_7 = IDENT_8 . METHOD_1 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( java . lang . String ) { if ( IDENT_9 == null ) { throw new java . io . IOException ( STRING_2 ) ; } org . osgi . service . IDENT_0 . IDENT_3 IDENT_10 = IDENT_6 . METHOD_2 ( IDENT_9 ) ; if ( IDENT_10 != null ) { METHOD_3 ( IDENT_10 , IDENT_3 . IDENT_4 ) ; org . osgi . service . IDENT_0 . IDENT_3 [ ] IDENT_11 = ( ( org . osgi . service . IDENT_0 . IDENT_1 ) ( IDENT_10 ) ) . METHOD_1 ( ) ; if ( IDENT_11 != null ) { java . lang . String [ ] IDENT_7 = new java . lang . String [ IDENT_11 . length ] ; for ( int i = 0 ; i < ( IDENT_11 . length ) ; i ++ ) { IDENT_7 [ i ] = IDENT_11 [ i ] . getName ( ) ; } return IDENT_7 ; } } return null ; }
org . junit . Assert . assertArrayEquals ( new java . lang . String [ ] { STRING_1 } , IDENT_7 )