METHOD_0 ( ) { com . IDENT_0 . servlet . image . IDENT_1 context = mock ( com . IDENT_0 . servlet . image . IDENT_1 . class ) ; com . IDENT_0 . servlet . image . IDENT_2 IDENT_3 = mock ( com . IDENT_0 . servlet . image . IDENT_2 . class ) ; when ( IDENT_3 . METHOD_1 ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_3 . METHOD_2 ( ) ) . thenReturn ( context ) ; when ( IDENT_3 . METHOD_3 ( ) ) . thenReturn ( new com . IDENT_0 . util . METHOD_4 ( STRING_1 ) ) ; when ( IDENT_3 . METHOD_5 ( STRING_1 ) ) . thenReturn ( "foo" ) ; com . IDENT_0 . servlet . image . IDENT_4 . IDENT_5 filter = new com . IDENT_0 . servlet . image . IDENT_4 . METHOD_6 ( ) ; filter . init ( IDENT_3 ) ; javax . servlet . http . IDENT_6 request = mock ( javax . servlet . http . IDENT_6 . class ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( javax . servlet . IDENT_7 ) { boolean METHOD_7 = false ; if ( IDENT_8 instanceof javax . servlet . http . IDENT_6 ) { javax . servlet . http . IDENT_6 request = ( ( javax . servlet . http . IDENT_6 ) ( IDENT_8 ) ) ; java . lang . String accept = METHOD_8 ( request ) ; java . lang . String IDENT_9 = METHOD_2 ( ) . METHOD_9 ( request . METHOD_10 ( ) ) ; if ( ! ( com . IDENT_0 . lang . IDENT_10 . contains ( accept , IDENT_9 ) ) ) { METHOD_7 = true ; } } return METHOD_7 || ( super . METHOD_7 ( IDENT_8 ) ) ; }
org . junit . Assert . assertFalse ( filter . METHOD_7 ( request ) )