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 org . apache . http . 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 . api . IDENT_8 client = ca . uhn . fhir . rest . client . IDENT_9 . IDENT_10 . METHOD_14 ( STRING_5 ) ; ca . uhn . fhir . rest . client . IDENT_11 response = client . search ( ) . METHOD_15 ( STRING_6 ) . METHOD_16 ( ca . uhn . fhir . rest . client . IDENT_11 . class ) . execute ( ) ; "<AssertPlaceHolder>" ; } METHOD_17 ( ) { if ( ( this . entry ) == null ) this . entry = new org . IDENT_12 . fhir . IDENT_13 . model . ArrayList < org . IDENT_12 . fhir . IDENT_13 . model . IDENT_11 . IDENT_14 > ( ) ; return this . entry ; }
org . junit . Assert . assertEquals ( 1 , response . METHOD_17 ( ) . size ( ) )