METHOD_0 ( ) { org . apache . jackrabbit . oak . plugins . index . search . IDENT_0 cache = new org . apache . jackrabbit . oak . plugins . index . search . METHOD_1 ( ( 10 * ( org . apache . commons . io . IDENT_1 . IDENT_2 ) ) , 100 ) ; org . apache . jackrabbit . oak . plugins . index . IDENT_3 . IDENT_4 provider = mock ( org . apache . jackrabbit . oak . plugins . index . IDENT_3 . IDENT_4 . class ) ; cache . METHOD_2 ( provider ) ; when ( provider . getText ( anyString ( ) , any ( org . apache . jackrabbit . oak . api . IDENT_5 . class ) ) ) . thenReturn ( new org . apache . jackrabbit . oak . plugins . index . IDENT_3 . METHOD_3 ( org . apache . jackrabbit . oak . plugins . index . IDENT_3 . METHOD_3 . IDENT_6 . IDENT_7 , "bar" ) ) ; org . apache . jackrabbit . oak . api . IDENT_5 b = new org . apache . jackrabbit . oak . plugins . index . search . IDENT_8 . METHOD_4 ( STRING_0 , "a" ) ; java . lang . String text = cache . get ( STRING_1 , "foo" , b , true ) ; "<AssertPlaceHolder>" ; } get ( java . lang . String , java . lang . String , org . apache . jackrabbit . oak . api . IDENT_5 , boolean ) { java . lang . String result = null ; java . lang . String IDENT_9 = METHOD_5 ( IDENT_10 , IDENT_11 ) ; org . apache . jackrabbit . oak . plugins . index . search . METHOD_1 . log . trace ( STRING_2 , IDENT_9 , IDENT_12 . METHOD_6 ( ) ) ; if ( ( IDENT_13 || ( IDENT_14 ) ) && ( ( IDENT_15 ) != null ) ) { try { org . apache . jackrabbit . oak . plugins . index . IDENT_3 . METHOD_3 text = IDENT_15 . getText ( IDENT_9 , IDENT_12 ) ; if ( text != null ) { ( IDENT_16 ) ++ ; result = org . apache . jackrabbit . oak . plugins . index . search . METHOD_1 . getText ( text ) ; } } catch ( java . io . IOException e ) { org . apache . jackrabbit . oak . plugins . index . search . METHOD_1 . log . warn ( STRING_3 , IDENT_9 , e ) ; } } java . lang . String id = IDENT_12 . METHOD_6 ( ) ; if ( ( ( ( cache ) != null ) && ( id != null ) ) && ( result == null ) ) { result = cache . METHOD_7 ( id ) ; } if ( ( result == null ) && ( id != null ) ) { result = IDENT_17 . get ( id ) ; } return result ; }
org . junit . Assert . assertEquals ( "bar" , text )