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 . jboss . IDENT_0 . container . IDENT_4 expected = mock ( org . jboss . IDENT_0 . container . IDENT_4 . class ) ; org . apache . IDENT_2 . IDENT_5 . IDENT_4 IDENT_5 = new org . apache . IDENT_2 . IDENT_5 . METHOD_1 ( STRING_0 ) ; when ( factory . METHOD_2 ( METHOD_3 ( IDENT_5 ) ) ) . thenReturn ( expected ) ; org . jboss . IDENT_0 . container . METHOD_1 result = new org . jboss . IDENT_0 . container . tomcat . METHOD_4 ( IDENT_5 ) . METHOD_0 ( factory , engine ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( org . jboss . IDENT_0 . container . tomcat . IDENT_1 , org . apache . IDENT_2 . IDENT_3 ) { return factory . METHOD_2 ( this . IDENT_5 ) ; }
org . junit . Assert . assertSame ( expected , result )