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