METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_0 . METHOD_2 ( ) ) . thenReturn ( METHOD_3 ( STRING_1 ) ) ; when ( IDENT_0 . getType ( ) ) . thenReturn ( javax . jcr . IDENT_1 . IDENT_2 ) ; when ( IDENT_0 . getName ( ) ) . thenReturn ( ( STRING_2 + ( METHOD_3 ( STRING_1 ) ) ) ) ; final org . apache . jena . IDENT_3 . model . IDENT_4 property = IDENT_5 . convert ( IDENT_0 ) ; assert property != null ; "<AssertPlaceHolder>" ; } convert ( java . lang . String ) { final java . util . regex . IDENT_6 matcher = org . IDENT_7 . http . commons . domain . IDENT_8 . IDENT_9 . matcher ( source ) ; if ( ! ( matcher . matches ( ) ) ) { return new org . IDENT_7 . http . commons . domain . METHOD_4 ( ) ; } final java . lang . String from = matcher . group ( 1 ) ; final java . lang . String to = matcher . group ( 2 ) ; final long start ; if ( from . equals ( "" ) ) { start = 0 ; } else { start = java . lang . Long . METHOD_5 ( from ) ; } final long end ; if ( to . equals ( "" ) ) { end = - 1 ; } else { end = java . lang . Long . METHOD_5 ( to ) ; } return new org . IDENT_7 . http . commons . domain . METHOD_4 ( start , end ) ; }
org . junit . Assert . assertEquals ( STRING_1 , property . METHOD_2 ( ) )