METHOD_0 ( ) { org . apache . IDENT_0 . persistence . model . entity . IDENT_1 IDENT_2 = new org . apache . IDENT_0 . persistence . model . entity . METHOD_1 ( STRING_0 ) ; org . apache . IDENT_0 . persistence . model . entity . IDENT_1 IDENT_3 = new org . apache . IDENT_0 . persistence . model . entity . METHOD_1 ( STRING_1 ) ; org . apache . IDENT_0 . persistence . index . impl . IDENT_4 IDENT_5 = new org . apache . IDENT_0 . persistence . index . impl . METHOD_2 ( IDENT_3 , STRING_2 , IDENT_6 . IDENT_7 . IDENT_8 , 10 ) ; final java . util . UUID IDENT_9 = org . apache . IDENT_0 . persistence . model . util . IDENT_10 . METHOD_3 ( ) ; java . util . Map IDENT_11 = new java . util . HashMap ( ) { { put ( STRING_3 , IDENT_9 ) ; } } ; org . apache . IDENT_0 . persistence . model . entity . Entity user = org . apache . IDENT_0 . persistence . index . impl . IDENT_12 . METHOD_4 ( IDENT_11 ) ; final org . apache . IDENT_0 . persistence . model . entity . IDENT_1 IDENT_13 = new org . apache . IDENT_0 . persistence . model . entity . METHOD_1 ( STRING_4 ) ; org . apache . IDENT_0 . persistence . model . util . IDENT_14 . setId ( user , IDENT_13 ) ; org . apache . IDENT_0 . persistence . model . util . IDENT_14 . METHOD_5 ( user , org . apache . IDENT_0 . persistence . model . util . IDENT_10 . METHOD_3 ( ) ) ; org . apache . IDENT_0 . persistence . index . impl . IDENT_15 batch = IDENT_16 . METHOD_6 ( ) ; batch . index ( IDENT_5 , user ) ; IDENT_17 . put ( batch . build ( ) ) . METHOD_7 ( ) ; IDENT_16 . METHOD_8 ( ) . METHOD_9 ( ) . first ( ) ; final java . lang . String query = STRING_5 + IDENT_9 ; final org . apache . IDENT_0 . persistence . index . impl . IDENT_18 r = IDENT_16 . search ( IDENT_5 , org . apache . IDENT_0 . persistence . index . impl . IDENT_19 . METHOD_10 ( IDENT_13 . getType ( ) ) , query , 10 , 0 , false ) ; "<AssertPlaceHolder>" ; } getId ( ) { return id ; }
org . junit . Assert . assertEquals ( user . getId ( ) , r . get ( 0 ) . getId ( ) )