METHOD_0 ( ) { java . lang . String name = "name" ; java . lang . Object value = null ; this . validate ( ( session ) -> session . METHOD_1 ( name , value ) ) ; org . wildfly . IDENT_0 . web . session . IDENT_1 < org . wildfly . IDENT_0 . web . IDENT_2 . session . IDENT_3 , org . wildfly . IDENT_0 . IDENT_4 . IDENT_5 > manager = mock ( org . wildfly . IDENT_0 . web . session . IDENT_1 . class ) ; org . wildfly . IDENT_0 . IDENT_4 . IDENT_6 < org . wildfly . IDENT_0 . IDENT_4 . IDENT_5 > IDENT_7 = mock ( org . wildfly . IDENT_0 . IDENT_4 . IDENT_6 . class ) ; org . wildfly . IDENT_0 . IDENT_4 . IDENT_8 context = mock ( org . wildfly . IDENT_0 . IDENT_4 . IDENT_8 . class ) ; org . wildfly . IDENT_0 . web . session . IDENT_9 attributes = mock ( org . wildfly . IDENT_0 . web . session . IDENT_9 . class ) ; io . IDENT_2 . server . session . IDENT_10 listener = mock ( io . IDENT_2 . server . session . IDENT_10 . class ) ; io . IDENT_2 . server . session . IDENT_11 IDENT_12 = new io . IDENT_2 . server . session . METHOD_2 ( ) ; IDENT_12 . METHOD_3 ( listener ) ; java . lang . Object expected = new java . lang . Object ( ) ; when ( this . session . METHOD_4 ( ) ) . thenReturn ( attributes ) ; when ( attributes . METHOD_5 ( name ) ) . thenReturn ( expected ) ; when ( this . manager . METHOD_6 ( ) ) . thenReturn ( IDENT_12 ) ; when ( this . manager . METHOD_7 ( ) ) . thenReturn ( manager ) ; when ( manager . METHOD_8 ( ) ) . thenReturn ( IDENT_7 ) ; when ( IDENT_7 . METHOD_9 ( this . batch ) ) . thenReturn ( context ) ; java . lang . Object result = this . adapter . METHOD_1 ( name , value ) ; "<AssertPlaceHolder>" ; verify ( listener , METHOD_10 ( ) ) . METHOD_11 ( this . adapter , name , value ) ; verify ( listener , METHOD_10 ( ) ) . METHOD_12 ( METHOD_13 ( this . adapter ) , METHOD_13 ( name ) , METHOD_13 ( value ) , any ( ) ) ; verify ( listener ) . METHOD_14 ( this . adapter , name , expected ) ; verify ( context ) . close ( ) ; } METHOD_1 ( java . lang . String , java . lang . Object ) { if ( IDENT_13 == null ) { return this . METHOD_5 ( name ) ; } if ( ( this . properties . METHOD_15 ( ) ) && ( ! ( this . IDENT_14 . METHOD_16 ( IDENT_13 ) ) ) ) { throw new java . lang . IllegalArgumentException ( new org . IDENT_15 . commons . IDENT_16 . METHOD_17 ( IDENT_13 . getClass ( ) . getName ( ) ) ) ; } IDENT_17 value = this . IDENT_14 . write ( IDENT_13 ) ; java . util . UUID IDENT_18 = this . IDENT_19 . get ( name ) ; if ( IDENT_18 == null ) { java . util . UUID IDENT_20 = java . util . UUID . METHOD_18 ( ) ; this . METHOD_19 ( this . IDENT_21 . METHOD_20 ( ) . METHOD_21 ( IDENT_22 . IDENT_23 ) . compute ( this . METHOD_22 ( ) , ( this . properties . METHOD_23 ( ) ? new org . wildfly . IDENT_0 . IDENT_15 . spi . function . METHOD_24 ( name , IDENT_20 ) : new org . wildfly . IDENT_0 . IDENT_15 . spi . function . METHOD_25 ( name , IDENT_20 ) ) ) ) ; IDENT_18 = this . IDENT_19 . get ( name ) ; } org . wildfly . IDENT_0 . web . IDENT_15 . session . IDENT_24 . IDENT_25 key = this . METHOD_22 ( IDENT_18 ) ; java . lang . Object result = this . read ( name , this . IDENT_26 . METHOD_20 ( ) . METHOD_21 ( IDENT_22 . IDENT_23 ) . put ( key , value ) ) ; if ( this . properties . METHOD_23 ( ) ) { this . IDENT_27 . put ( name , IDENT_28 . IDENT_29 ) ; } else { if ( IDENT_30 . INSTANCE . test ( IDENT_13 ) ) { this . IDENT_27 . remove ( name ) ; } else { this . IDENT_27 . put ( name , new org . wildfly . IDENT_0 . IDENT_4 . IDENT_15 . METHOD_26 ( this . IDENT_26 , key , value ) ) ; } } return result ; }
org . junit . Assert . assertSame ( expected , result )