METHOD_0 ( ) { fr . IDENT_0 . IDENT_1 . core . persistence . dao . IDENT_2 IDENT_3 = org . mockito . Mockito . mock ( fr . IDENT_0 . IDENT_1 . core . persistence . dao . IDENT_2 . class ) ; fr . IDENT_0 . IDENT_1 . core . business . process . IDENT_4 IDENT_5 = org . mockito . Mockito . mock ( fr . IDENT_0 . IDENT_1 . core . business . process . IDENT_4 . class ) ; fr . IDENT_0 . IDENT_1 . core . persistence . entity . IDENT_6 IDENT_7 = new fr . IDENT_0 . IDENT_1 . core . persistence . entity . METHOD_1 ( STRING_0 ) ; when ( IDENT_3 . update ( IDENT_7 ) ) . thenReturn ( IDENT_7 ) ; IDENT_8 = new fr . IDENT_0 . IDENT_1 . core . business . service . METHOD_2 ( ) ; IDENT_8 . IDENT_9 = IDENT_3 ; IDENT_8 . IDENT_5 = IDENT_5 ; IDENT_8 . init ( ) ; IDENT_8 . update ( IDENT_7 ) ; fr . IDENT_0 . IDENT_1 . core . persistence . entity . METHOD_1 IDENT_10 = IDENT_8 . find ( IDENT_7 . getName ( ) ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( IDENT_7 , IDENT_10 )