METHOD_0 ( ) { final net . IDENT_0 . IDENT_1 req = METHOD_1 ( ) ; final net . IDENT_0 . IDENT_2 . IDENT_3 IDENT_4 = mock ( net . IDENT_0 . IDENT_2 . IDENT_3 . class ) ; final net . IDENT_0 . IDENT_2 . IDENT_5 IDENT_6 = mock ( net . IDENT_0 . IDENT_2 . IDENT_5 . class ) ; when ( IDENT_6 . METHOD_2 ( ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_4 . matches ( eq ( req ) ) ) . thenReturn ( true ) ; final net . IDENT_0 . IDENT_2 . IDENT_7 IDENT_8 = net . IDENT_0 . IDENT_2 . IDENT_7 . IDENT_9 ; when ( IDENT_4 . METHOD_3 ( eq ( req ) ) ) . thenReturn ( IDENT_8 ) ; final net . IDENT_0 . IDENT_2 . IDENT_3 IDENT_10 = mock ( net . IDENT_0 . IDENT_2 . IDENT_3 . class ) ; final net . IDENT_0 . IDENT_2 . IDENT_5 IDENT_11 = mock ( net . IDENT_0 . IDENT_2 . IDENT_5 . class ) ; when ( IDENT_11 . METHOD_2 ( ) ) . thenReturn ( IDENT_10 ) ; when ( IDENT_10 . matches ( eq ( req ) ) ) . thenReturn ( true ) ; final net . IDENT_0 . IDENT_2 . IDENT_7 IDENT_12 = net . IDENT_0 . IDENT_2 . IDENT_7 . IDENT_9 ; when ( IDENT_10 . METHOD_3 ( eq ( req ) ) ) . thenReturn ( IDENT_12 ) ; final net . IDENT_0 . IDENT_2 . IDENT_13 sf = mock ( net . IDENT_0 . IDENT_2 . IDENT_13 . class ) ; when ( sf . METHOD_4 ( any ( java . nio . IDENT_14 . IDENT_15 . class ) , METHOD_5 ( ) , any ( org . apache . commons . collections . IDENT_16 . class ) ) ) . thenReturn ( IDENT_6 , IDENT_11 ) ; final net . IDENT_0 . IDENT_2 . server . IDENT_17 server = mock ( net . IDENT_0 . IDENT_2 . server . IDENT_17 . class ) ; final net . IDENT_0 . IDENT_18 IDENT_19 = new net . IDENT_0 . METHOD_6 ( server , sf ) ; IDENT_19 . METHOD_7 ( ) ; IDENT_19 . METHOD_7 ( ) ; "<AssertPlaceHolder>" ; } METHOD_8 ( net . IDENT_0 . IDENT_1 ) { MOD_0 ( this ) { if ( this . IDENT_20 ) { this . IDENT_20 = false ; this . IDENT_21 = this . METHOD_9 ( ) ; } if ( this . IDENT_22 ) { this . IDENT_23 . add ( request ) ; } } for ( final java . util . Iterator < net . IDENT_0 . IDENT_2 . IDENT_3 > it = this . IDENT_21 . METHOD_10 ( ) ; it . hasNext ( ) ; ) { final net . IDENT_0 . IDENT_2 . IDENT_3 rule = it . next ( ) ; if ( rule . matches ( request ) ) { final java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( STRING_0 ) ; sb . append ( rule ) ; net . IDENT_0 . METHOD_6 . logger . debug ( sb . toString ( ) ) ; return rule . METHOD_3 ( request ) ; } } final java . lang . StringBuilder sb = new java . lang . StringBuilder ( ) ; sb . append ( STRING_1 ) ; for ( final net . IDENT_0 . IDENT_2 . IDENT_3 rule : this . IDENT_21 ) { sb . append ( STRING_2 ) ; sb . append ( rule ) ; sb . append ( STRING_3 ) ; sb . append ( rule . METHOD_11 ( request ) ) ; sb . append ( "\n" ) ; } net . IDENT_0 . METHOD_6 . logger . info ( sb . toString ( ) ) ; return net . IDENT_0 . METHOD_6 . IDENT_24 ; }
org . junit . Assert . assertThat ( IDENT_19 . METHOD_8 ( req ) , org . hamcrest . Matchers . is ( IDENT_12 ) )