METHOD_0 ( ) { java . lang . String name = "name" ; this . validate ( ( session ) -> session . METHOD_0 ( name ) ) ; 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_1 ( ) ; IDENT_12 . METHOD_2 ( listener ) ; java . lang . Object expected = new java . lang . Object ( ) ; when ( this . session . METHOD_3 ( ) ) . thenReturn ( attributes ) ; when ( attributes . METHOD_0 ( name ) ) . thenReturn ( expected ) ; when ( this . manager . METHOD_4 ( ) ) . thenReturn ( IDENT_12 ) ; when ( this . manager . METHOD_5 ( ) ) . thenReturn ( manager ) ; when ( manager . METHOD_6 ( ) ) . thenReturn ( IDENT_7 ) ; when ( IDENT_7 . METHOD_7 ( this . batch ) ) . thenReturn ( context ) ; java . lang . Object result = this . adapter . METHOD_0 ( name ) ; "<AssertPlaceHolder>" ; verify ( listener ) . METHOD_8 ( this . adapter , name , expected ) ; verify ( context ) . close ( ) ; } METHOD_0 ( java . lang . String ) { java . util . UUID IDENT_13 = this . IDENT_14 . get ( name ) ; if ( IDENT_13 == null ) return null ; this . METHOD_9 ( this . IDENT_15 . METHOD_10 ( ) . METHOD_11 ( IDENT_16 . IDENT_17 ) . METHOD_12 ( this . METHOD_13 ( ) , ( this . properties . METHOD_14 ( ) ? new org . wildfly . IDENT_0 . IDENT_18 . spi . function . METHOD_15 ( name ) : new org . wildfly . IDENT_0 . IDENT_18 . spi . function . METHOD_16 ( name ) ) ) ) ; java . lang . Object result = this . read ( name , this . IDENT_19 . METHOD_10 ( ) . METHOD_11 ( IDENT_16 . IDENT_17 ) . remove ( this . METHOD_13 ( IDENT_13 ) ) ) ; this . IDENT_20 . remove ( name ) ; return result ; }
org . junit . Assert . assertSame ( expected , result )