METHOD_0 ( ) { net . IDENT_0 . IDENT_1 . rest . List < net . IDENT_0 . IDENT_1 . rest . Map < java . lang . String , java . lang . Object > > IDENT_2 = new net . IDENT_0 . IDENT_1 . rest . ArrayList ( ) ; net . IDENT_0 . IDENT_1 . rest . Map < java . lang . String , java . lang . Object > IDENT_3 = new net . IDENT_0 . IDENT_1 . rest . HashMap ( ) ; net . IDENT_0 . IDENT_1 . rest . Map < java . lang . String , java . lang . String > IDENT_4 = new net . IDENT_0 . IDENT_1 . rest . HashMap ( ) ; IDENT_4 . put ( STRING_0 , STRING_1 ) ; IDENT_3 . put ( STRING_2 , STRING_3 ) ; IDENT_3 . put ( STRING_4 , net . IDENT_0 . IDENT_1 . rest . Arrays . asList ( "test" ) ) ; IDENT_3 . put ( STRING_5 , IDENT_4 ) ; IDENT_3 . put ( STRING_6 , STRING_7 ) ; IDENT_2 . add ( IDENT_3 ) ; net . IDENT_0 . IDENT_1 . rest . Map < java . lang . String , java . lang . Object > IDENT_5 = new net . IDENT_0 . IDENT_1 . rest . HashMap ( ) ; net . IDENT_0 . IDENT_1 . rest . Map < java . lang . String , java . lang . String > IDENT_6 = new net . IDENT_0 . IDENT_1 . rest . HashMap ( ) ; IDENT_6 . put ( STRING_0 , STRING_1 ) ; IDENT_5 . put ( STRING_2 , STRING_3 ) ; IDENT_5 . put ( STRING_4 , net . IDENT_0 . IDENT_1 . rest . Arrays . asList ( "test" ) ) ; IDENT_5 . put ( STRING_5 , IDENT_6 ) ; IDENT_5 . put ( STRING_6 , STRING_7 ) ; IDENT_2 . add ( IDENT_5 ) ; java . lang . String json = net . IDENT_0 . IDENT_1 . rest . IDENT_7 . IDENT_8 . METHOD_1 ( IDENT_2 ) ; javax . ws . rs . client . Entity < java . lang . String > entity = javax . ws . rs . client . Entity . json ( json ) ; javax . ws . rs . core . Response response = target ( STRING_8 ) . request ( IDENT_9 . IDENT_10 ) . METHOD_2 ( entity ) ; int IDENT_11 = response . getStatus ( ) ; "<AssertPlaceHolder>" ; } add ( java . lang . String ) { net . IDENT_0 . IDENT_1 . rest . IDENT_12 listener = net . IDENT_0 . IDENT_1 . rest . IDENT_13 . METHOD_3 ( ) ; javax . ws . rs . core . Response response ; try { log . info ( STRING_9 , json ) ; listener . add ( METHOD_4 ( json ) ) ; response = javax . ws . rs . core . Response . METHOD_5 ( ) . build ( ) ; } catch ( net . IDENT_0 . IDENT_1 . rest . exceptions . IDENT_14 e ) { log . info ( STRING_10 , e . getMessage ( ) ) ; response = javax . ws . rs . core . Response . status ( Response . Status . IDENT_15 ) . entity ( METHOD_6 ( e , Response . Status . IDENT_15 ) ) . build ( ) ; } catch ( java . lang . Exception e ) { e . printStackTrace ( ) ; response = javax . ws . rs . core . Response . METHOD_7 ( ) . entity ( METHOD_6 ( e , Response . Status . IDENT_16 ) ) . build ( ) ; } return response ; }
org . junit . Assert . assertEquals ( Response . Status . IDENT_15 . getStatusCode ( ) , IDENT_11 )