METHOD_0 ( ) { java . lang . String msg = METHOD_1 ( ) ; org . mockito . IDENT_0 < org . apache . http . client . methods . IDENT_1 > IDENT_2 = org . mockito . IDENT_0 . METHOD_2 ( org . apache . http . client . methods . IDENT_1 . class ) ; when ( IDENT_3 . execute ( IDENT_2 . METHOD_3 ( ) ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_4 . METHOD_4 ( ) ) . thenReturn ( new org . apache . http . message . METHOD_5 ( new ca . uhn . fhir . rest . client . METHOD_6 ( STRING_0 , 1 , 1 ) , 200 , STRING_1 ) ) ; when ( IDENT_4 . METHOD_7 ( ) . METHOD_8 ( ) ) . thenReturn ( new org . apache . http . message . METHOD_9 ( STRING_2 , ( ( ca . uhn . fhir . rest . api . Constants . IDENT_5 ) + STRING_3 ) ) ) ; when ( IDENT_4 . METHOD_7 ( ) . METHOD_10 ( ) ) . thenReturn ( new org . apache . commons . io . input . METHOD_11 ( new java . io . METHOD_12 ( msg ) , java . nio . IDENT_6 . IDENT_7 . METHOD_13 ( STRING_4 ) ) ) ; ca . uhn . fhir . rest . client . IDENT_8 [ ] headers = new ca . uhn . fhir . rest . client . IDENT_8 [ ] { new org . apache . http . message . METHOD_9 ( ca . uhn . fhir . rest . api . Constants . IDENT_9 , STRING_5 ) , new org . apache . http . message . METHOD_9 ( ca . uhn . fhir . rest . api . Constants . IDENT_10 , STRING_6 ) } ; when ( IDENT_4 . METHOD_14 ( ) ) . thenReturn ( headers ) ; ca . uhn . fhir . rest . client . api . IDENT_11 client = ca . uhn . fhir . rest . client . IDENT_12 . IDENT_13 . METHOD_15 ( STRING_7 ) ; org . IDENT_14 . fhir . instance . model . IDENT_15 response = client . read ( org . IDENT_14 . fhir . instance . model . IDENT_15 . class , new ca . uhn . fhir . model . IDENT_16 . METHOD_16 ( STRING_8 ) ) ; "<AssertPlaceHolder>" ; } METHOD_17 ( ) { return getId ( ) ; }
org . junit . Assert . assertEquals ( STRING_5 , response . METHOD_17 ( ) . getValue ( ) )