METHOD_0 ( ) { org . osgi . framework . IDENT_0 IDENT_1 = org . mockito . Mockito . mock ( org . osgi . framework . IDENT_0 . class ) ; org . mockito . Mockito . when ( context . METHOD_1 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . any ( java . io . InputStream . class ) ) ) . thenReturn ( IDENT_1 ) ; org . mockito . Mockito . when ( IDENT_1 . METHOD_2 ( ) ) . thenReturn ( java . lang . Long . valueOf ( 2 ) ) ; org . apache . IDENT_2 . IDENT_3 . framework . IDENT_4 IDENT_5 = org . mockito . Mockito . METHOD_3 ( IDENT_6 ) ; java . io . InputStream stream = org . mockito . Mockito . mock ( java . io . InputStream . class ) ; org . mockito . Mockito . doReturn ( stream ) . when ( IDENT_5 ) . METHOD_4 ( STRING_0 ) ; long IDENT_7 = IDENT_5 . METHOD_5 ( STRING_1 , STRING_0 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . METHOD_6 ( context ) ; org . mockito . Mockito . doReturn ( stream ) . when ( IDENT_5 ) . METHOD_4 ( org . mockito . Mockito . anyString ( ) ) ; org . mockito . Mockito . when ( context . METHOD_1 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . any ( java . io . InputStream . class ) ) ) . METHOD_7 ( new org . osgi . framework . METHOD_8 ( STRING_2 ) ) ; try { IDENT_5 . METHOD_5 ( STRING_3 , STRING_0 ) ; org . junit . Assert . fail ( STRING_4 ) ; } catch ( java . io . IOException e ) { } } METHOD_5 ( java . lang . String , java . lang . String ) { java . io . InputStream IDENT_8 = null ; try { IDENT_8 = METHOD_4 ( url ) ; org . osgi . framework . IDENT_0 IDENT_1 = context . METHOD_1 ( location , IDENT_8 ) ; return IDENT_1 . METHOD_2 ( ) ; } catch ( java . lang . Exception e ) { java . io . IOException IDENT_9 = new java . io . IOException ( ( ( ( STRING_5 + location ) + STRING_6 ) + ( e . getMessage ( ) ) ) ) ; IDENT_9 . METHOD_9 ( e ) ; throw IDENT_9 ; } finally { if ( IDENT_8 != null ) { try { IDENT_8 . close ( ) ; } catch ( java . io . IOException IDENT_10 ) { } } } }
org . junit . Assert . assertEquals ( 2 , IDENT_7 )