METHOD_0 ( ) { org . jboss . IDENT_0 . container . tomcat . IDENT_1 factory = mock ( org . jboss . IDENT_0 . container . tomcat . IDENT_1 . class ) ; org . apache . IDENT_2 . IDENT_3 engine = mock ( org . apache . IDENT_2 . IDENT_3 . class ) ; org . apache . IDENT_2 . IDENT_4 service = mock ( org . apache . IDENT_2 . IDENT_4 . class ) ; org . jboss . IDENT_0 . container . IDENT_5 expected = mock ( org . jboss . IDENT_0 . container . IDENT_5 . class ) ; org . apache . IDENT_2 . IDENT_6 . IDENT_5 IDENT_6 = new org . apache . IDENT_2 . IDENT_6 . METHOD_1 ( STRING_0 ) ; IDENT_6 . METHOD_2 ( INT_0 ) ; when ( engine . METHOD_3 ( ) ) . thenReturn ( service ) ; when ( service . METHOD_4 ( ) ) . thenReturn ( new org . apache . IDENT_2 . IDENT_6 . METHOD_1 [ ] { IDENT_6 } ) ; when ( factory . METHOD_5 ( METHOD_6 ( IDENT_6 ) ) ) . thenReturn ( expected ) ; org . jboss . IDENT_0 . container . tomcat . IDENT_7 config = mock ( org . jboss . IDENT_0 . container . tomcat . IDENT_7 . class ) ; when ( config . METHOD_7 ( ) ) . thenReturn ( null ) ; when ( config . METHOD_8 ( ) ) . thenReturn ( INT_0 ) ; org . jboss . IDENT_0 . container . METHOD_1 result = new org . jboss . IDENT_0 . container . tomcat . METHOD_9 ( config ) . METHOD_0 ( factory , engine ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( org . jboss . IDENT_0 . container . tomcat . IDENT_1 , org . apache . IDENT_2 . IDENT_3 ) { return factory . METHOD_5 ( this . IDENT_6 ) ; }
org . junit . Assert . assertSame ( expected , result )