METHOD_0 ( ) { java . lang . String name = "name" ; java . lang . String IDENT_0 = STRING_0 ; java . lang . String IDENT_1 = STRING_1 ; java . lang . String IDENT_2 = STRING_1 ; java . lang . String IDENT_3 = STRING_1 ; java . lang . String IDENT_4 = STRING_1 ; java . lang . String IDENT_5 = STRING_1 ; java . lang . String IDENT_6 = STRING_2 ; uk . gov . IDENT_7 . IDENT_8 . persistence . entity . IDENT_9 IDENT_10 = new uk . gov . IDENT_7 . IDENT_8 . persistence . entity . METHOD_1 ( name , IDENT_0 , IDENT_1 , IDENT_2 , IDENT_3 , IDENT_4 , IDENT_5 , IDENT_6 ) ; uk . gov . IDENT_7 . IDENT_8 . model . IDENT_11 request = new uk . gov . IDENT_7 . IDENT_8 . model . METHOD_2 ( name , IDENT_0 , IDENT_1 , IDENT_2 , IDENT_3 , IDENT_4 , IDENT_5 , IDENT_6 ) ; uk . gov . IDENT_7 . IDENT_8 . persistence . entity . IDENT_12 IDENT_13 = mock ( uk . gov . IDENT_7 . IDENT_8 . persistence . entity . IDENT_12 . class ) ; when ( IDENT_14 . METHOD_3 ( uk . gov . IDENT_7 . IDENT_8 . service . IDENT_15 . IDENT_16 ) ) . thenReturn ( java . util . Optional . of ( IDENT_13 ) ) ; when ( IDENT_13 . METHOD_4 ( ) ) . thenReturn ( uk . gov . IDENT_7 . IDENT_8 . model . IDENT_17 . from ( ) ) ; uk . gov . IDENT_7 . IDENT_8 . model . IDENT_17 service = IDENT_18 . METHOD_5 ( uk . gov . IDENT_7 . IDENT_8 . service . IDENT_15 . IDENT_16 , request ) ; "<AssertPlaceHolder>" ; verify ( IDENT_13 ) . METHOD_6 ( IDENT_10 ) ; verify ( IDENT_14 ) . METHOD_7 ( IDENT_13 ) ; } METHOD_5 ( java . lang . String , uk . gov . IDENT_7 . IDENT_8 . model . METHOD_2 ) { return IDENT_14 . METHOD_3 ( IDENT_19 ) . map ( ( IDENT_13 ) -> { uk . gov . IDENT_7 . IDENT_8 . persistence . entity . METHOD_1 IDENT_20 = uk . gov . IDENT_7 . IDENT_8 . persistence . entity . METHOD_1 . from ( IDENT_21 ) ; IDENT_13 . METHOD_6 ( IDENT_20 ) ; IDENT_14 . METHOD_7 ( IDENT_13 ) ; return IDENT_13 . METHOD_4 ( ) ; } ) . METHOD_8 ( ( ) -> new uk . gov . IDENT_7 . IDENT_8 . exception . METHOD_9 ( IDENT_19 ) ) ; }
org . junit . Assert . assertNotNull ( service )