METHOD_0 ( ) { org . apache . jackrabbit . core . data . IDENT_0 IDENT_1 = new org . apache . jackrabbit . core . data . METHOD_1 ( STRING_0 ) ; org . apache . jackrabbit . core . data . METHOD_1 IDENT_2 = new org . apache . jackrabbit . core . data . METHOD_1 ( STRING_1 ) ; org . apache . jackrabbit . core . data . METHOD_1 IDENT_3 = new org . apache . jackrabbit . core . data . METHOD_1 ( STRING_2 ) ; java . util . List < org . apache . jackrabbit . core . data . METHOD_1 > IDENT_4 = com . google . common . collect . ImmutableList . of ( IDENT_1 , IDENT_2 , IDENT_3 ) ; java . util . List < org . apache . jackrabbit . core . data . IDENT_5 > IDENT_6 = com . google . common . collect . Lists . newArrayList ( com . google . common . collect . IDENT_7 . transform ( IDENT_4 , new com . google . common . base . IDENT_8 < org . apache . jackrabbit . core . data . METHOD_1 , org . apache . jackrabbit . core . data . IDENT_5 > ( ) { @ org . IDENT_9 . IDENT_10 . IDENT_11 @ org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . Override public org . apache . jackrabbit . core . data . IDENT_5 apply ( @ org . IDENT_9 . IDENT_10 . IDENT_11 org . apache . jackrabbit . core . data . METHOD_1 input ) { return new org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . IDENT_13 . METHOD_2 ( input ) ; } } ) ) ; org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . IDENT_14 IDENT_15 = mock ( org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . IDENT_14 . class ) ; when ( IDENT_15 . METHOD_3 ( ) ) . thenReturn ( IDENT_6 . iterator ( ) ) ; when ( IDENT_15 . METHOD_4 ( new org . apache . jackrabbit . core . data . METHOD_1 ( STRING_0 ) ) ) . thenReturn ( new org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . IDENT_13 . METHOD_2 ( IDENT_1 ) ) ; when ( IDENT_15 . METHOD_4 ( new org . apache . jackrabbit . core . data . METHOD_1 ( STRING_1 ) ) ) . thenReturn ( new org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . IDENT_13 . METHOD_2 ( IDENT_2 ) ) ; when ( IDENT_15 . METHOD_4 ( new org . apache . jackrabbit . core . data . METHOD_1 ( STRING_2 ) ) ) . thenReturn ( new org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . IDENT_13 . METHOD_2 ( IDENT_3 ) ) ; org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . IDENT_16 IDENT_17 = new org . apache . jackrabbit . oak . plugins . IDENT_12 . datastore . METHOD_5 ( IDENT_15 ) ; java . util . Iterator < java . lang . String > IDENT_18 = IDENT_17 . METHOD_6 ( INT_0 ) ; java . util . Set < java . lang . String > expected = com . google . common . collect . IDENT_19 . METHOD_7 ( STRING_0 , STRING_1 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( long ) { org . bson . IDENT_20 . IDENT_21 fields = new com . mongodb . METHOD_8 ( IDENT_22 . IDENT_23 , 1 ) ; org . bson . IDENT_20 . IDENT_21 query = new org . bson . Document ( ) ; if ( ( IDENT_24 != 0 ) && ( IDENT_24 != ( - 1 ) ) ) { query = com . mongodb . client . model . IDENT_25 . METHOD_9 ( IDENT_22 . IDENT_26 , IDENT_24 ) ; } final com . mongodb . client . IDENT_27 < org . apache . jackrabbit . oak . plugins . document . IDENT_28 . IDENT_22 > IDENT_29 = METHOD_10 ( ) . find ( query ) . METHOD_11 ( fields ) . METHOD_12 ( fields ) . iterator ( ) ; return new com . google . common . collect . IDENT_30 < java . lang . String > ( ) { @ org . apache . jackrabbit . oak . plugins . document . IDENT_28 . Override MOD_0 java . lang . String METHOD_13 ( ) { if ( IDENT_29 . hasNext ( ) ) { org . apache . jackrabbit . oak . plugins . document . IDENT_28 . IDENT_22 IDENT_12 = IDENT_29 . next ( ) ; if ( IDENT_12 != null ) { return IDENT_12 . getId ( ) ; } } return METHOD_14 ( ) ; } } ; }
org . junit . Assert . assertEquals ( expected , com . google . common . collect . IDENT_19 . METHOD_7 ( IDENT_18 ) )