test ( ) { javax . management . IDENT_0 IDENT_1 = mock ( javax . management . IDENT_0 . class ) ; javax . management . IDENT_2 name = javax . management . IDENT_2 . getInstance ( STRING_0 ) ; org . apache . IDENT_3 . IDENT_4 expected = mock ( org . apache . IDENT_3 . IDENT_4 . class ) ; org . apache . IDENT_3 . IDENT_5 service = mock ( org . apache . IDENT_3 . IDENT_5 . class ) ; when ( IDENT_1 . invoke ( METHOD_0 ( name ) , eq ( STRING_1 ) , ( ( java . lang . Object [ ] ) ( METHOD_1 ( ) ) ) , ( ( java . lang . String [ ] ) ( METHOD_1 ( ) ) ) ) ) . thenReturn ( new org . apache . IDENT_3 . IDENT_5 [ ] { service } ) ; when ( service . METHOD_2 ( ) ) . thenReturn ( expected ) ; org . jboss . IDENT_6 . container . tomcat . IDENT_7 provider = new org . jboss . IDENT_6 . container . tomcat . METHOD_3 ( IDENT_1 , name ) ; org . apache . IDENT_3 . IDENT_4 result = provider . METHOD_2 ( ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( ) { return this . server ; }
org . junit . Assert . assertSame ( expected , result )