METHOD_0 ( ) { when ( base . METHOD_1 ( ) ) . thenReturn ( client ) ; when ( client . getName ( ) ) . METHOD_2 ( new org . apache . IDENT_0 . transport . METHOD_3 ( ) ) . thenReturn ( STRING_0 ) ; com . IDENT_1 . IDENT_2 . IDENT_3 . client . IDENT_4 IDENT_5 = factory . newInstance ( "name" , com . IDENT_1 . IDENT_2 . IDENT_3 . client . IDENT_6 . IDENT_7 , base ) ; java . lang . String result = IDENT_5 . getName ( ) ; "<AssertPlaceHolder>" ; verify ( base ) . METHOD_4 ( ) ; } getName ( ) { return name ; }
org . junit . Assert . assertThat ( result , org . hamcrest . CoreMatchers . is ( STRING_0 ) )