METHOD_0 ( ) { javax . servlet . http . IDENT_0 session = mock ( javax . servlet . http . IDENT_0 . class ) ; when ( session . METHOD_1 ( com . IDENT_1 . IDENT_2 . session . IDENT_3 . IDENT_4 ) ) . thenReturn ( null ) ; javax . servlet . http . IDENT_5 request = mock ( javax . servlet . http . IDENT_5 . class ) ; when ( request . METHOD_2 ( false ) ) . thenReturn ( session ) ; com . IDENT_1 . IDENT_2 . session . IDENT_6 IDENT_7 = new com . IDENT_1 . IDENT_2 . session . METHOD_3 ( request ) ; java . util . Optional < com . IDENT_1 . backend . model . User > user = IDENT_7 . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { java . util . Optional < javax . servlet . http . IDENT_0 > session = METHOD_2 ( false ) ; if ( session . METHOD_5 ( ) ) { com . IDENT_1 . backend . model . User user = ( ( com . IDENT_1 . backend . model . User ) ( session . get ( ) . METHOD_1 ( com . IDENT_1 . IDENT_2 . session . METHOD_3 . IDENT_4 ) ) ) ; return java . util . Optional . METHOD_6 ( user ) ; } return java . util . Optional . empty ( ) ; }
org . junit . Assert . assertFalse ( user . METHOD_5 ( ) )