METHOD_0 ( ) { org . apache . IDENT_0 . rest . test . resource . model . User user = new org . apache . IDENT_0 . rest . test . resource . model . User ( STRING_0 , STRING_0 , STRING_1 , STRING_2 ) ; this . app ( ) . collection ( STRING_3 ) . METHOD_1 ( user ) ; org . apache . IDENT_0 . rest . test . resource . model . IDENT_1 token = this . app ( ) . token ( ) . METHOD_1 ( new org . apache . IDENT_0 . rest . test . resource . model . METHOD_2 ( STRING_0 , STRING_2 ) ) ; java . util . Map < java . lang . String , java . lang . String > data = METHOD_3 ( "name" , STRING_4 ) ; java . lang . String json = org . apache . IDENT_0 . utils . IDENT_2 . METHOD_4 ( data ) ; org . apache . http . impl . client . IDENT_3 client = new org . apache . http . impl . client . METHOD_5 ( ) ; org . apache . http . IDENT_4 host = new org . apache . http . METHOD_6 ( super . METHOD_7 ( ) . METHOD_8 ( ) , super . METHOD_7 ( ) . METHOD_9 ( ) ) ; org . apache . http . client . methods . IDENT_5 METHOD_1 = new org . apache . http . client . methods . METHOD_10 ( java . lang . String . format ( STRING_5 , this . IDENT_6 . METHOD_11 ( ) . getName ( ) , this . IDENT_6 . METHOD_12 ( ) ) ) ; METHOD_1 . METHOD_13 ( new org . apache . http . entity . METHOD_14 ( json ) ) ; METHOD_1 . METHOD_15 ( IDENT_7 . IDENT_8 , ( STRING_6 + ( token . METHOD_16 ( ) ) ) ) ; METHOD_1 . METHOD_15 ( IDENT_7 . IDENT_9 , IDENT_10 . IDENT_11 ) ; METHOD_1 . METHOD_15 ( IDENT_7 . IDENT_12 , IDENT_10 . IDENT_13 ) ; org . apache . http . IDENT_14 IDENT_15 = client . execute ( host , METHOD_1 ) ; METHOD_17 ( IDENT_15 ) ; "<AssertPlaceHolder>" ; } METHOD_17 ( org . apache . http . IDENT_14 ) { org . apache . http . IDENT_16 entity = IDENT_15 . METHOD_18 ( ) ; System . out . println ( STRING_7 ) ; System . out . println ( IDENT_15 . METHOD_19 ( ) ) ; org . apache . http . IDENT_17 [ ] headers = IDENT_15 . METHOD_20 ( ) ; for ( int i = 0 ; i < ( headers . length ) ; i ++ ) { System . out . println ( headers [ i ] ) ; } System . out . println ( STRING_7 ) ; if ( entity != null ) { System . out . println ( org . apache . http . util . IDENT_18 . toString ( entity ) ) ; } }
org . junit . Assert . assertEquals ( 200 , IDENT_15 . METHOD_19 ( ) . getStatusCode ( ) )