METHOD_0 ( ) { javax . jcr . version . IDENT_0 IDENT_1 = mock ( javax . jcr . version . IDENT_0 . class , METHOD_1 ( ) . METHOD_2 ( java . util . Iterator . class ) ) ; when ( IDENT_1 . hasNext ( ) ) . thenReturn ( true , false ) ; javax . jcr . version . IDENT_2 IDENT_3 = mock ( javax . jcr . version . IDENT_2 . class ) ; when ( IDENT_1 . next ( ) ) . thenReturn ( IDENT_3 ) ; org . apache . IDENT_4 . api . resource . IDENT_5 resource = METHOD_3 ( IDENT_1 ) ; javax . jcr . version . IDENT_2 result = IDENT_6 . METHOD_4 ( resource ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . apache . IDENT_4 . api . resource . IDENT_5 ) { try { org . apache . IDENT_4 . api . resource . IDENT_5 IDENT_7 = ( resource . METHOD_5 ( IDENT_8 . IDENT_9 ) ) ? resource . METHOD_6 ( IDENT_8 . IDENT_10 ) : resource ; javax . jcr . version . IDENT_11 IDENT_12 = IDENT_7 . METHOD_7 ( ) . METHOD_8 ( javax . jcr . IDENT_13 . class ) . METHOD_9 ( ) . METHOD_10 ( ) ; final java . util . Iterator < javax . jcr . version . IDENT_2 > IDENT_14 = IDENT_12 . METHOD_11 ( IDENT_7 . getPath ( ) ) . METHOD_12 ( ) ; return com . google . common . collect . IDENT_15 . METHOD_13 ( IDENT_14 ) ; } catch ( javax . jcr . IDENT_16 e ) { com . IDENT_17 . IDENT_18 . commons . IDENT_19 . IDENT_20 . impl . IDENT_21 . log . error ( STRING_0 , resource . getName ( ) ) ; } return null ; }
org . junit . Assert . assertThat ( result , org . hamcrest . Matchers . is ( IDENT_3 ) )