METHOD_0 ( ) { final org . exist . IDENT_0 . IDENT_1 IDENT_2 = org . exist . storage . IDENT_3 . uri ( STRING_0 ) ; final long IDENT_4 = INT_0 ; final org . easymock . IDENT_5 IDENT_6 = METHOD_1 ( ) ; IDENT_6 . METHOD_2 ( true ) ; final org . exist . storage . IDENT_7 IDENT_8 = IDENT_6 . METHOD_3 ( org . exist . storage . IDENT_7 . class ) ; final org . exist . storage . IDENT_9 IDENT_10 = IDENT_6 . METHOD_3 ( org . exist . storage . IDENT_9 . class ) ; final org . exist . collections . Collection IDENT_11 = IDENT_6 . METHOD_3 ( org . exist . collections . Collection . class ) ; final org . exist . dom . IDENT_12 . IDENT_13 IDENT_14 = IDENT_6 . METHOD_3 ( org . exist . dom . IDENT_12 . IDENT_13 . class ) ; final org . exist . dom . IDENT_12 . IDENT_15 IDENT_16 = IDENT_6 . METHOD_3 ( org . exist . dom . IDENT_12 . IDENT_15 . class ) ; final org . exist . dom . IDENT_12 . IDENT_17 IDENT_18 = IDENT_6 . METHOD_3 ( org . exist . dom . IDENT_12 . IDENT_17 . class ) ; expect ( IDENT_8 . METHOD_4 ( ) ) . andReturn ( IDENT_10 ) ; expect ( IDENT_10 . METHOD_5 ( org . exist . storage . IDENT_19 . IDENT_20 , org . exist . storage . IDENT_21 ) ) . andReturn ( IDENT_11 ) ; expect ( IDENT_11 . METHOD_6 ( IDENT_10 , IDENT_2 , org . exist . storage . IDENT_21 ) ) . andReturn ( IDENT_14 ) ; expect ( IDENT_14 . METHOD_7 ( ) ) . andReturn ( IDENT_16 ) ; IDENT_11 . close ( ) ; expect ( IDENT_16 . METHOD_8 ( ) ) . andReturn ( IDENT_18 ) ; expect ( IDENT_18 . METHOD_9 ( ) ) . andReturn ( IDENT_4 ) ; IDENT_14 . close ( ) ; IDENT_10 . close ( ) ; IDENT_6 . replay ( ) ; final java . util . function . IDENT_22 < org . exist . dom . IDENT_12 . IDENT_15 , java . lang . Long > IDENT_23 = ( document ) -> document . METHOD_8 ( ) . METHOD_9 ( ) ; final long result = org . exist . storage . IDENT_3 . builder ( IDENT_8 ) . 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 ) ) . METHOD_12 ( ) . execute ( IDENT_23 ) . METHOD_13 ( ) ; "<AssertPlaceHolder>" ; IDENT_6 . verify ( ) ; } execute ( org . exist . storage . IDENT_7 ) { return execute ( IDENT_25 , org . exist . test . IDENT_26 . IDENT_27 ) ; }
org . junit . Assert . assertEquals ( IDENT_4 , result )