METHOD_0 ( ) { org . apache . IDENT_0 . Context context = mock ( org . jboss . IDENT_1 . container . Context . class ) ; org . jboss . IDENT_1 . container . Context expected = mock ( org . jboss . IDENT_1 . container . Context . class ) ; org . jboss . IDENT_1 . container . tomcat . IDENT_2 IDENT_3 = mock ( org . jboss . IDENT_1 . container . tomcat . IDENT_2 . class ) ; when ( this . host . METHOD_1 ( STRING_0 ) ) . thenReturn ( context ) ; when ( this . registry . METHOD_2 ( ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_3 . METHOD_3 ( METHOD_4 ( context ) , METHOD_4 ( this . IDENT_4 ) ) ) . thenReturn ( expected ) ; org . jboss . IDENT_1 . container . Context result = this . IDENT_4 . METHOD_0 ( STRING_0 ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String ) { org . apache . IDENT_0 . Context context = ( ( org . apache . IDENT_0 . Context ) ( this . host . METHOD_1 ( path ) ) ) ; return context != null ? this . registry . METHOD_2 ( ) . METHOD_3 ( context , this ) : null ; }
org . junit . Assert . assertSame ( expected , result )