METHOD_0 ( ) { javax . jcr . IDENT_0 IDENT_1 = mock ( javax . jcr . IDENT_0 . class ) ; com . IDENT_2 . IDENT_3 . search . IDENT_4 IDENT_5 = mock ( com . IDENT_2 . IDENT_3 . search . IDENT_4 . class ) ; com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . internal . models . v1 . IDENT_8 . IDENT_9 . METHOD_1 ( org . apache . IDENT_10 . api . resource . IDENT_11 . class , javax . jcr . IDENT_0 . class , IDENT_1 ) ; com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . internal . models . v1 . IDENT_8 . IDENT_9 . METHOD_1 ( org . apache . IDENT_10 . api . resource . IDENT_12 . class , com . IDENT_2 . IDENT_3 . search . IDENT_4 . class , IDENT_5 ) ; com . IDENT_2 . IDENT_3 . search . result . IDENT_13 IDENT_14 = mock ( com . IDENT_2 . IDENT_3 . search . result . IDENT_13 . class ) ; com . IDENT_2 . IDENT_3 . search . result . IDENT_15 IDENT_16 = mock ( com . IDENT_2 . IDENT_3 . search . result . IDENT_15 . class ) ; when ( IDENT_5 . METHOD_2 ( ) ) . thenReturn ( IDENT_14 ) ; when ( IDENT_14 . METHOD_3 ( ) ) . thenReturn ( java . util . Collections . singletonList ( IDENT_16 ) ) ; org . apache . IDENT_10 . api . resource . IDENT_12 IDENT_17 = com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . internal . models . v1 . IDENT_8 . IDENT_9 . METHOD_4 ( ) . getResource ( STRING_0 ) ; when ( IDENT_16 . getResource ( ) ) . thenReturn ( IDENT_17 ) ; com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . models . List list = METHOD_5 ( com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . internal . models . v1 . IDENT_8 . IDENT_18 ) ; "<AssertPlaceHolder>" ; com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . Utils . METHOD_6 ( list , com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . Utils . METHOD_7 ( com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . internal . models . v1 . IDENT_8 . IDENT_19 , com . IDENT_6 . IDENT_3 . IDENT_7 . core . components . internal . models . v1 . IDENT_8 . IDENT_18 ) ) ; } METHOD_8 ( ) { throw new java . lang . METHOD_9 ( ) ; }
org . junit . Assert . assertEquals ( 1 , list . METHOD_8 ( ) . size ( ) )