METHOD_0 ( ) { com . IDENT_0 . session . repository . redis . IDENT_1 IDENT_2 = mock ( com . IDENT_0 . session . repository . redis . IDENT_1 . class ) ; try ( com . IDENT_0 . session . repository . redis . IDENT_3 IDENT_4 = new com . IDENT_0 . session . repository . redis . METHOD_1 ( IDENT_2 , STRING_0 , STRING_1 , IDENT_5 . IDENT_6 , false ) ) { com . IDENT_0 . session . IDENT_7 IDENT_8 = mock ( com . IDENT_0 . session . IDENT_7 . class ) ; com . IDENT_0 . session . IDENT_9 conf = new com . IDENT_0 . session . METHOD_2 ( ) ; when ( IDENT_8 . METHOD_3 ( ) ) . thenReturn ( conf ) ; when ( IDENT_8 . METHOD_4 ( ) ) . thenReturn ( new com . IDENT_10 . metrics . METHOD_5 ( ) ) ; com . IDENT_0 . session . IDENT_11 IDENT_12 = new com . IDENT_0 . session . METHOD_6 ( ) ; IDENT_12 . METHOD_7 ( IDENT_8 ) ; org . mockito . Mockito . when ( IDENT_8 . METHOD_8 ( ) ) . thenReturn ( IDENT_12 ) ; IDENT_4 . METHOD_7 ( IDENT_8 ) ; org . mockito . Mockito . when ( IDENT_2 . METHOD_9 ( IDENT_4 . METHOD_10 ( STRING_2 ) , com . IDENT_0 . session . repository . redis . IDENT_13 . encode ( STRING_3 ) ) ) . thenReturn ( java . util . Collections . singletonList ( IDENT_12 . serialize ( STRING_4 ) ) ) ; java . lang . Object res = IDENT_4 . METHOD_11 ( new com . IDENT_0 . session . METHOD_12 ( STRING_2 , 100 , 10 ) , STRING_3 ) ; verify ( IDENT_2 , times ( 1 ) ) . METHOD_9 ( eq ( IDENT_4 . METHOD_10 ( STRING_2 ) ) , eq ( com . IDENT_0 . session . repository . redis . IDENT_13 . encode ( STRING_3 ) ) ) ; "<AssertPlaceHolder>" ; } } encode ( java . lang . String ) { if ( str == null ) { throw new java . lang . IllegalArgumentException ( STRING_5 ) ; } return str . getBytes ( IDENT_14 . UTF_8 ) ; }
org . junit . Assert . assertEquals ( STRING_4 , res )