METHOD_0 ( ) { final org . exist . IDENT_0 . IDENT_1 IDENT_2 = org . exist . storage . IDENT_3 . uri ( STRING_0 ) ; final org . easymock . IDENT_4 IDENT_5 = METHOD_1 ( ) ; IDENT_5 . METHOD_2 ( true ) ; final org . exist . storage . IDENT_6 IDENT_7 = IDENT_5 . METHOD_3 ( org . exist . storage . IDENT_6 . class ) ; final org . exist . storage . IDENT_8 IDENT_9 = IDENT_5 . METHOD_3 ( org . exist . storage . IDENT_8 . class ) ; final org . exist . collections . Collection IDENT_10 = IDENT_5 . METHOD_3 ( org . exist . collections . Collection . class ) ; final org . exist . dom . IDENT_11 . IDENT_12 IDENT_13 = IDENT_5 . METHOD_3 ( org . exist . dom . IDENT_11 . IDENT_12 . class ) ; final org . exist . dom . IDENT_11 . IDENT_14 IDENT_15 = IDENT_5 . METHOD_3 ( org . exist . dom . IDENT_11 . IDENT_14 . class ) ; final org . exist . storage . IDENT_16 . IDENT_17 IDENT_18 = IDENT_5 . METHOD_3 ( org . exist . storage . IDENT_16 . IDENT_17 . class ) ; expect ( IDENT_7 . METHOD_4 ( ) ) . andReturn ( IDENT_9 ) ; expect ( IDENT_9 . METHOD_5 ( org . exist . storage . IDENT_19 . IDENT_20 , org . exist . storage . IDENT_21 ) ) . andReturn ( IDENT_10 ) ; expect ( IDENT_10 . METHOD_6 ( IDENT_9 , IDENT_2 , org . exist . storage . IDENT_21 ) ) . andReturn ( IDENT_13 ) ; expect ( IDENT_13 . METHOD_7 ( ) ) . andReturn ( IDENT_15 ) ; expect ( IDENT_10 . METHOD_8 ( ) ) . andReturn ( org . exist . storage . IDENT_19 . IDENT_20 ) ; expect ( IDENT_15 . METHOD_9 ( ) ) . andReturn ( IDENT_2 ) ; IDENT_10 . close ( ) ; IDENT_13 . close ( ) ; IDENT_9 . close ( ) ; IDENT_5 . replay ( ) ; final java . util . function . IDENT_22 < org . exist . collections . Collection , org . exist . dom . IDENT_11 . IDENT_14 , java . lang . String > IDENT_23 = ( collection , doc ) -> collection . METHOD_8 ( ) . append ( doc . METHOD_9 ( ) ) . toString ( ) ; final java . lang . String result = org . exist . storage . IDENT_3 . builder ( IDENT_7 ) . METHOD_10 ( org . exist . storage . IDENT_19 . IDENT_20 , org . exist . storage . IDENT_21 ) . METHOD_11 ( ( collection ) -> new < org . exist . storage . IDENT_21 > org . exist . storage . IDENT_24 < > ( IDENT_2 ) ) . execute ( IDENT_23 ) . METHOD_12 ( ) ; "<AssertPlaceHolder>" ; IDENT_5 . verify ( ) ; } append ( org . exist . storage . IDENT_25 ) { final org . exist . dom . IDENT_26 [ ] IDENT_27 = new org . exist . dom . IDENT_26 [ ( length ( ) ) + ( other . length ( ) ) ] ; java . lang . System . METHOD_13 ( components , 0 , IDENT_27 , 0 , pos ) ; java . lang . System . METHOD_13 ( other . components , 0 , IDENT_27 , pos , other . length ( ) ) ; pos = IDENT_27 . length ; components = IDENT_27 ; }
org . junit . Assert . assertEquals ( org . exist . storage . IDENT_19 . IDENT_20 . append ( IDENT_2 ) , result )