METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( IDENT_1 ) ) . thenReturn ( java . util . Optional . empty ( ) ) ; uk . gov . IDENT_2 . IDENT_3 . model . IDENT_4 IDENT_5 = METHOD_2 ( IDENT_6 , IDENT_7 , IDENT_8 ) ; java . util . Optional < uk . gov . IDENT_2 . IDENT_3 . model . IDENT_9 > IDENT_10 = IDENT_11 . METHOD_3 ( IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( uk . gov . IDENT_2 . IDENT_3 . model . IDENT_12 ) { java . lang . String IDENT_13 = IDENT_14 . METHOD_4 ( ) ; java . util . Optional < uk . gov . IDENT_2 . IDENT_3 . persistence . entity . IDENT_15 > IDENT_16 = IDENT_17 . METHOD_5 ( IDENT_13 ) ; if ( IDENT_16 . METHOD_6 ( ) ) { uk . gov . IDENT_2 . IDENT_3 . persistence . entity . IDENT_15 user = IDENT_16 . get ( ) ; if ( ! ( user . METHOD_7 ( ) ) ) { METHOD_8 ( IDENT_13 , user . METHOD_9 ( ) ) ; } else { METHOD_10 ( IDENT_13 , user . METHOD_9 ( ) ) ; } throw uk . gov . IDENT_2 . IDENT_3 . service . IDENT_18 . METHOD_11 ( IDENT_13 ) ; } java . util . List < uk . gov . IDENT_2 . IDENT_3 . persistence . entity . IDENT_19 > IDENT_20 = IDENT_21 . METHOD_5 ( IDENT_13 ) ; java . util . List < uk . gov . IDENT_2 . IDENT_3 . persistence . entity . IDENT_19 > IDENT_22 = IDENT_20 . stream ( ) . filter ( ( IDENT_23 ) -> ( ! ( IDENT_23 . METHOD_7 ( ) ) ) && ( ! ( IDENT_23 . METHOD_12 ( ) ) ) ) . filter ( ( IDENT_23 ) -> uk . gov . IDENT_2 . IDENT_3 . service . IDENT_24 . getType ( ) . equals ( IDENT_23 . getType ( ) ) ) . collect ( java . util . stream . IDENT_25 . toList ( ) ) ; if ( ! ( IDENT_22 . isEmpty ( ) ) ) { uk . gov . IDENT_2 . IDENT_3 . persistence . entity . IDENT_19 IDENT_26 = IDENT_22 . get ( 0 ) ; return METHOD_13 ( IDENT_14 , IDENT_26 , ( IDENT_23 ) -> { IDENT_21 . METHOD_14 ( IDENT_23 ) ; return null ; } ) ; } return IDENT_27 . METHOD_15 ( IDENT_14 . METHOD_16 ( ) ) . map ( ( IDENT_28 ) -> { uk . gov . IDENT_2 . IDENT_3 . persistence . entity . IDENT_19 IDENT_23 = new uk . gov . IDENT_2 . IDENT_3 . persistence . entity . METHOD_17 ( IDENT_13 , METHOD_18 ( ) , IDENT_14 . METHOD_19 ( ) , IDENT_28 ) ; IDENT_23 . METHOD_20 ( uk . gov . IDENT_2 . IDENT_3 . service . IDENT_24 ) ; return METHOD_13 ( IDENT_14 , IDENT_23 , ( IDENT_29 ) -> { IDENT_21 . METHOD_21 ( IDENT_29 ) ; return null ; } ) ; } ) . METHOD_22 ( ( ) -> METHOD_23 ( format ( STRING_0 , IDENT_14 . METHOD_16 ( ) ) ) ) ; }
org . junit . Assert . assertFalse ( IDENT_10 . METHOD_6 ( ) )