METHOD_0 ( ) { final org . apache . rya . api . client . IDENT_0 IDENT_1 = mock ( org . apache . rya . api . client . IDENT_0 . class ) ; final org . apache . rya . api . client . IDENT_2 IDENT_3 = mock ( org . apache . rya . api . client . IDENT_2 . class ) ; when ( IDENT_1 . METHOD_1 ( ) ) . thenReturn ( IDENT_3 ) ; final org . apache . rya . api . instance . IDENT_4 IDENT_5 = mock ( org . apache . rya . api . instance . IDENT_4 . class ) ; when ( IDENT_5 . METHOD_2 ( ) ) . thenReturn ( com . google . common . base . Optional . METHOD_3 ( ) ) ; when ( IDENT_3 . METHOD_4 ( eq ( STRING_0 ) ) ) . thenReturn ( com . google . common . base . Optional . of ( IDENT_5 ) ) ; final org . apache . rya . shell . IDENT_6 state = new org . apache . rya . shell . METHOD_5 ( ) ; state . METHOD_6 ( mock ( org . apache . rya . api . client . accumulo . IDENT_7 . class ) , IDENT_1 ) ; state . METHOD_7 ( STRING_0 ) ; final org . apache . rya . shell . IDENT_8 commands = new org . apache . rya . shell . METHOD_8 ( state , mock ( org . apache . rya . shell . util . IDENT_9 . class ) , mock ( org . apache . rya . shell . util . IDENT_10 . class ) ) ; final java . lang . String message = commands . METHOD_9 ( ) ; final java . lang . String expected = STRING_1 ; "<AssertPlaceHolder>" ; } METHOD_9 ( ) { final java . lang . String IDENT_11 = state . METHOD_10 ( ) . METHOD_11 ( ) . get ( ) ; final org . apache . rya . api . client . IDENT_0 client = state . METHOD_10 ( ) . METHOD_12 ( ) . get ( ) ; try { final com . google . common . base . Optional < org . apache . rya . api . instance . IDENT_4 > IDENT_5 = client . METHOD_1 ( ) . METHOD_4 ( IDENT_11 ) ; if ( ! ( IDENT_5 . METHOD_13 ( ) ) ) { return STRING_2 ; } final com . google . common . base . Optional < org . apache . rya . api . instance . IDENT_4 . IDENT_12 > IDENT_13 = IDENT_5 . get ( ) . METHOD_2 ( ) ; if ( ! ( IDENT_13 . METHOD_13 ( ) ) ) { return STRING_1 ; } return ( ( STRING_3 + ( IDENT_13 . get ( ) . METHOD_14 ( ) ) ) + STRING_4 ) + ( IDENT_13 . get ( ) . METHOD_15 ( ) ) ; } catch ( final org . apache . rya . api . client . IDENT_14 e ) { throw new java . lang . RuntimeException ( STRING_5 , e ) ; } }
org . junit . Assert . assertEquals ( expected , message )