METHOD_0 ( ) { org . openmrs . IDENT_0 property = new org . openmrs . METHOD_1 ( STRING_0 , STRING_1 ) ; org . openmrs . api . context . Context . METHOD_2 ( ) . METHOD_3 ( property ) ; org . springframework . mock . web . IDENT_1 req = new org . springframework . mock . web . METHOD_4 ( ) ; req . METHOD_5 ( STRING_2 ) ; req . METHOD_6 ( STRING_3 , STRING_4 ) ; java . io . ByteArrayOutputStream stream = new java . io . ByteArrayOutputStream ( ) ; java . util . IDENT_2 . IDENT_3 IDENT_4 = new java . util . IDENT_2 . METHOD_7 ( stream ) ; java . io . IDENT_5 IDENT_6 = new java . io . METHOD_8 ( IDENT_4 ) ; IDENT_6 . write ( STRING_5 ) ; IDENT_6 . METHOD_9 ( ) ; IDENT_4 . METHOD_10 ( ) ; req . METHOD_11 ( stream . toByteArray ( ) ) ; org . springframework . mock . web . IDENT_7 IDENT_8 = new org . springframework . mock . web . METHOD_12 ( ) ; javax . servlet . IDENT_9 IDENT_10 = mock ( javax . servlet . IDENT_9 . class ) ; org . openmrs . web . filter . IDENT_11 IDENT_12 = new org . openmrs . web . filter . METHOD_13 ( ) ; IDENT_12 . METHOD_14 ( req , IDENT_8 , IDENT_10 ) ; final org . mockito . IDENT_13 < javax . servlet . http . IDENT_14 > IDENT_15 = org . mockito . IDENT_13 . METHOD_15 ( javax . servlet . http . IDENT_14 . class ) ; org . mockito . Mockito . verify ( IDENT_10 ) . METHOD_16 ( IDENT_15 . METHOD_17 ( ) , org . mockito . Mockito . any ( javax . servlet . http . IDENT_16 . class ) ) ; javax . servlet . http . IDENT_14 IDENT_17 = IDENT_15 . getValue ( ) ; try { java . io . InputStream IDENT_18 = IDENT_17 . METHOD_18 ( ) ; java . io . IDENT_19 IDENT_20 = new java . io . METHOD_19 ( IDENT_18 ) ; java . io . IDENT_21 IDENT_22 = new java . io . METHOD_20 ( IDENT_20 ) ; java . lang . String IDENT_23 = IDENT_22 . METHOD_21 ( ) ; "<AssertPlaceHolder>" ; } catch ( java . io . IOException e ) { throw new java . lang . RuntimeException ( ) ; } } METHOD_18 ( ) { return stream ; }
org . junit . Assert . assertThat ( IDENT_23 , org . hamcrest . Matchers . is ( STRING_5 ) )