METHOD_0 ( ) { java . util . Set < byte [ ] > expected = java . util . Collections . METHOD_1 ( new byte [ ] { 1 } ) ; com . IDENT_0 . session . repository . redis . IDENT_1 . IDENT_2 < java . lang . Object > value = mock ( IDENT_1 . IDENT_2 . class ) ; when ( value . get ( ) ) . thenReturn ( expected ) ; when ( redis . transaction ( eq ( com . IDENT_0 . session . repository . redis . IDENT_3 . encode ( STRING_0 ) ) , any ( com . IDENT_0 . session . repository . redis . IDENT_1 . IDENT_4 . class ) ) ) . thenReturn ( value ) ; java . util . Set < byte [ ] > result = IDENT_5 . METHOD_2 ( com . IDENT_0 . session . repository . redis . IDENT_3 . encode ( STRING_0 ) ) ; "<AssertPlaceHolder>" ; verify ( redis ) . transaction ( eq ( com . IDENT_0 . session . repository . redis . IDENT_3 . encode ( STRING_0 ) ) , any ( com . IDENT_0 . session . repository . redis . IDENT_1 . IDENT_4 . class ) ) ; } encode ( java . lang . String ) { if ( str == null ) { throw new java . lang . IllegalArgumentException ( STRING_1 ) ; } return str . getBytes ( IDENT_6 . UTF_8 ) ; }
org . junit . Assert . assertSame ( expected , result )