METHOD_0 ( ) { org . osgi . service . IDENT_0 . User IDENT_1 = org . mockito . Mockito . mock ( org . osgi . service . IDENT_0 . User . class ) ; org . mockito . Mockito . when ( IDENT_1 . getType ( ) ) . thenReturn ( IDENT_2 . IDENT_3 ) ; org . mockito . Mockito . when ( IDENT_1 . getName ( ) ) . thenReturn ( STRING_0 ) ; org . mockito . Mockito . when ( IDENT_4 . METHOD_1 ( STRING_1 , STRING_2 ) ) . thenReturn ( IDENT_1 ) ; java . lang . String IDENT_5 = IDENT_6 . METHOD_2 ( STRING_1 , STRING_2 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . lang . String , java . lang . String ) { if ( key == null ) { throw new java . io . IOException ( STRING_3 ) ; } org . osgi . service . IDENT_0 . User user = IDENT_4 . METHOD_1 ( key , value ) ; if ( user == null ) { return null ; } return user . getName ( ) ; }
org . junit . Assert . assertEquals ( IDENT_5 , STRING_0 )