METHOD_0 ( ) { java . lang . String IDENT_0 = STRING_0 ; org . nuxeo . ecm . core . api . IDENT_1 IDENT_2 = org . nuxeo . ecm . core . api . IDENT_3 . METHOD_1 ( IDENT_0 ) ; IDENT_2 . METHOD_2 ( STRING_1 ) ; java . io . ByteArrayOutputStream out = new java . io . ByteArrayOutputStream ( ) ; javax . servlet . http . IDENT_4 req = mock ( javax . servlet . http . IDENT_4 . class ) ; when ( req . METHOD_3 ( STRING_2 ) ) . thenReturn ( STRING_3 ) ; when ( req . METHOD_4 ( ) ) . thenReturn ( STRING_4 ) ; javax . servlet . http . IDENT_5 IDENT_6 = mock ( javax . servlet . http . IDENT_5 . class ) ; javax . servlet . IDENT_7 IDENT_8 = new org . nuxeo . ecm . core . io . IDENT_9 . IDENT_10 . METHOD_5 ( ) { @ org . nuxeo . ecm . core . io . IDENT_9 . Override public void write ( int b ) { out . write ( b ) ; } } ; java . io . IDENT_11 IDENT_12 = new java . io . METHOD_6 ( IDENT_8 ) ; when ( IDENT_6 . METHOD_7 ( ) ) . thenReturn ( IDENT_8 ) ; when ( IDENT_6 . METHOD_8 ( ) ) . thenReturn ( IDENT_12 ) ; IDENT_13 . METHOD_9 ( req , IDENT_6 , null , null , IDENT_2 , null , "test" ) ; verify ( req , METHOD_10 ( ) ) . METHOD_3 ( STRING_2 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_6 ) . METHOD_11 ( IDENT_5 . IDENT_14 ) ; } METHOD_3 ( java . lang . String ) { java . lang . String IDENT_15 = name . toLowerCase ( ) ; if ( ! ( headers . containsKey ( IDENT_15 ) ) ) { return null ; } return headers . get ( IDENT_15 ) [ 0 ] ; }
org . junit . Assert . assertEquals ( 0 , out . toByteArray ( ) . length )