METHOD_0 ( ) { javax . ws . rs . ext . IDENT_0 . IDENT_1 < org . IDENT_2 . core . impl . IDENT_3 . IDENT_4 > IDENT_5 = mock ( javax . ws . rs . ext . IDENT_0 . IDENT_1 . class ) ; when ( IDENT_5 . toString ( METHOD_1 ( org . IDENT_2 . core . impl . IDENT_3 . IDENT_4 . class ) ) ) . thenReturn ( "bar" ) ; javax . ws . rs . ext . IDENT_0 IDENT_6 = mock ( javax . ws . rs . ext . IDENT_0 . class ) ; when ( IDENT_6 . METHOD_2 ( org . IDENT_2 . core . impl . IDENT_3 . IDENT_4 . class ) ) . thenReturn ( IDENT_5 ) ; javax . ws . rs . ext . IDENT_0 . METHOD_3 ( IDENT_6 ) ; javax . ws . rs . core . IDENT_7 < java . lang . String , java . lang . Object > headers = new javax . ws . rs . core . METHOD_4 ( ) ; headers . put ( "foo" , newArrayList ( new org . IDENT_2 . core . impl . IDENT_3 . METHOD_5 ( ) ) ) ; org . IDENT_2 . core . impl . IDENT_8 response = new org . IDENT_2 . core . impl . METHOD_6 ( 200 , "foo" , null , headers ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( java . lang . String ) { java . util . List < java . lang . Object > headers = METHOD_8 ( ) . get ( name ) ; if ( headers == null ) { return null ; } java . util . List < java . lang . String > IDENT_9 = headers . stream ( ) . map ( IDENT_10 :: IDENT_11 ) . collect ( toList ( ) ) ; return org . IDENT_2 . core . impl . header . IDENT_10 . METHOD_9 ( IDENT_9 ) ; }
org . junit . Assert . assertEquals ( "bar" , response . METHOD_7 ( "foo" ) )